.NET 4.7.2 Targeting
See original GitHub issueMissing .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:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Nuget Version 3.1.1