Hafner.Compatibility.ExtensionAttribute
3.0.3
dotnet add package Hafner.Compatibility.ExtensionAttribute --version 3.0.3
NuGet\Install-Package Hafner.Compatibility.ExtensionAttribute -Version 3.0.3
<PackageReference Include="Hafner.Compatibility.ExtensionAttribute" Version="3.0.3" />
<PackageVersion Include="Hafner.Compatibility.ExtensionAttribute" Version="3.0.3" />
<PackageReference Include="Hafner.Compatibility.ExtensionAttribute" />
paket add Hafner.Compatibility.ExtensionAttribute --version 3.0.3
#r "nuget: Hafner.Compatibility.ExtensionAttribute, 3.0.3"
#addin nuget:?package=Hafner.Compatibility.ExtensionAttribute&version=3.0.3
#tool nuget:?package=Hafner.Compatibility.ExtensionAttribute&version=3.0.3
Hafner.Compatibility.ExtensionAttribute
This package provides the following attributes:
Attribute | .Net 2.0 | 3.0 | 3.5 | 4.0 | 4.0.3 | 4.5 | 4.5.1 | 4.5.2 | 4.6 | 4.6.1 | 4.6.2 | 4.7 | 4.7.1 | 4.7.2 | 4.8 | 4.8.1 | .NETCore 1.0 | 1.1 | 2.0 | 2.1 | 2.2 | 3.0 | 3.1 | .Net 5.0 | 6.0 | 7.0 | 8.0 | 9.0 | .NET Standard 1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 2.0 | 2.1 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
System.Runtime.CompilerServices.ExtensionAttribute |
X | X |
It is recommended to reference Hafner.Compatibility.MetaPackage
instead of referencing this package directly.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net20 is compatible. net30 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.0
- No dependencies.
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Hafner.Compatibility.ExtensionAttribute:
Package | Downloads |
---|---|
Hafner.Tools.Enumerable.GetLinearSample
Package "Hafner.Tools.Enumerable.GetLinearSample" contains an extension method for an IEnumerable<T> that returns a linear sample of the desired number of elements from the collection (or less if the collection does not contain that many elements). Always the first and the last elements are returned and evenly spaced elements in between. Edge cases: <li /> If a negative number of samples is requested, an ArgumentOutOfRangeException is thrown. <li /> If the source list has less elements than samples requested, all elements are returned. <li /> If the source list is null, an empty List<T> is returned. <li /> If 0 samples are requested, an empty List<T> is returned. <li /> If 1 sample is requested, the first element is returned. <li /> If 2 samples are requested, the first and the last elements are returned. Assuming a collection contains 100 elements, a call to `collection.GetLinearSample(10)` would return a new List<T> containing the elements at index 0, 11, 22, 33, 44, 55, 66, 77, 88 and 99. This package supports <br /><li /> .NET framework versions 2.0, 3.0, 3.5, 4.0, 4.0.3, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1<br /><li /> .NET core versions 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0<br /><li /> .NET standard versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1<br /> |
|
Hafner.Compatibility.MetaPackage
Meta-package that includes Hafner.Compatibility.* packages (see https://github.com/HugoRoss/Hafner.Compatibility.Packages) as required. See 'PackageReadMe.md' for an overview with the exact types that are currently supported and for which framework they are imported. |
|
Hafner.Extensions.Object.CheckNull
Package "Hafner.Extensions.Object.CheckNull" contains an extension method for a `System.Object` that checks whether it is null (Nothing in Visual Basic) an in case it is, throws an `ArgumentNullException` with a speaking message (using the automatically filled in 2nd argument `parameterName`); otherwise, the object is returned. Behavior and edge cases: - If the object is a `System.ValueType` it cannot be called (compile error). - If the object is not `null`, the same instance is returned. - If the object is `null` and the parameter name is `null`, empty or white-space, an `ArgumentNullException` with a generic message is thrown ("The argument is mandatory and cannot be null!") - If the object is `null` and the parameter name is recognized as an expression, an `ArgumentNullException` with an according message is thrown ("The result of the expression '\{paramName}' is mandatory and cannot be null!") - If the object is `null` and the parameter name is recognized as a parameter name, an `ArgumentNullException` with an according message is thrown ("The argument for parameter '\{paramName}' is mandatory and cannot be null!") Supported Frameworks: - .NET Framework versions 2.0, 3.0, 3.5, 4.0, 4.0.3, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 - .NET Core versions 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 - .NET Standard versions 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
|
Hafner.Compatibility.Attributes
Meta-package that includes Hafner.Compatibility.* packages as needed. |
GitHub repositories
This package is not used by any popular GitHub repositories.
"PackageReadMe.md" improved.