question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET 4.7.2 Targeting

See original GitHub issue

Missing .NET 4.7.2 targeting, #114

Additional collection APIs

.NET Framework 4.7.2 adds a number of new APIs to the SortedSet<T> and HashSet<T> types. These include:

    TryGetValue methods, which extend the try pattern used in other collection types to these two types. The methods are:
        public bool HashSet<T>.TryGetValue(T equalValue, out T actualValue)
        public bool SortedSet<T>.TryGetValue(T equalValue, out T actualValue)

    Enumerable.To* extension methods, which convert a collection to a HashSet<T>:
        public static HashSet<TSource> ToHashSet<TSource>(this IEnumerable<TSource> source)
        public static HashSet<TSource> ToHashSet<TSource>(this IEnumerable<TSource> source, IEqualityComparer<TSource> comparer)

    New HashSet<T> constructors that let you set the collection's capacity, which yields a performance benefit when you know the size of the HashSet<T> in advance:
        public HashSet(int capacity)
        public HashSet(int capacity, IEqualityComparer<T> comparer)

The ConcurrentDictionary<TKey,TValue> class includes new overloads of the AddOrUpdate and GetOrAdd methods to retrieve a value from the dictionary or to add it if it is not found, and to add a value to the dictionary or to update it if it already exists.

https://docs.microsoft.com/en-us/dotnet/framework/whats-new/#core-472 https://docs.microsoft.com/en-us/dotnet/standard/frameworks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
theraotcommented, Dec 3, 2019

Nope, it returns the value that was inserted, not the value that was used to check. Yes, those values are equal (according to the comparer), however they might still not be the same.

0reactions
theraotcommented, Dec 11, 2019

Nuget Version 3.1.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install the .NET Framework developer pack or redistributable
Developers can download and install the .NET Framework developer pack and targeting pack. You can include the .NET Framework redistributable ...
Read more >
How to change .NET version in Visual Studio 2019 ...
Here's an example for a Windows Forms application targeting .NET Framework 4.7.2: <Project Sdk="Microsoft.NET.
Read more >
Cannot use .NET 4.7.2 with Visual Studio 2022
NET 4.7.2 Runtime and .NET 4.7.2 SDK on my PC, the Target Framework box in the project properties page only offers .NET 5.0,...
Read more >
Target .NETFramework 4.7.2 in addition to the existing ...
config when I reference Microsoft.Data.SqlClient from a .NET 4.7.2 application. I may be mistaken, but I would have thought that adding an ...
Read more >
What exactly is microsoft.net framework multi-targeting ...
1, 4.7.2, or 4.8 provides a particular .NET Framework's version of the reference assemblies, language packs, and IntelliSense files for use in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found