Easy.Extensions
1.0.1
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
dotnet add package Easy.Extensions --version 1.0.1
NuGet\Install-Package Easy.Extensions -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Easy.Extensions" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Easy.Extensions" Version="1.0.1" />
<PackageReference Include="Easy.Extensions" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Easy.Extensions --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Easy.Extensions, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Easy.Extensions@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Easy.Extensions&version=1.0.1
#tool nuget:?package=Easy.Extensions&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
系统类型拓展
String
判断字符串是否为空 <string>.IsNullOrEmpty();
Type
判断类型的接口定义是否包含执行类型 <type>.IsInterfaceDefinitionInclude(type); 判断类型是否继承自指定类型 <type>.IsInheritFrom(type); 判断是否是完全开放泛型 <type>.IsAllOpenGeneric(); 获取类型定义 <type>.GetTypeDefinition(); 获取类型的名称 <type>.Name(); 获取类型的完全限定名 <type>.FullName();
IEnumerable<T>
判读集合是否为空 <IEnumerable<T>>.IsNullOrEmpty();
ICustomAttributeProvider
获取指定类型特性 <ICustomAttributeProvider>.GetAttribute<attributeType>(bool); 获取指定类型特性集合 <ICustomAttributeProvider>.GetAttributes<attributeType>(bool); 检查指定类型特性是否存在,如果存在则获取 <ICustomAttributeProvider>.IsExistAttribute<attributeType>(bool,out attributeType); 设置属性值 <PropertyInfo>.SetPropertyValue(object,object);
更新日志
1.0.0
发布第一个正式版
1.0.1-beta1
1.解决 Easy.Extensions.DependencyInjection 依赖问题
1.0.1
1.修改 Type 拓展 IsOpenGeneric 为 IsAllOpenGeneric
a.判断是否为完全开放泛型
b.如果只是判断是否有没有指定特定类型的类型参数使用 ContainsGenericParameters 属性
2.移除以下方法的泛型约束
a.<ICustomAttributeProvider>.GetAttribute<T>(bool);
b.<ICustomAttributeProvider>.GetAttributes<T>(bool):
c.<ICustomAttributeProvider>.IsExistAttribute<T>(bool,out T?);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.0
- System.Reflection.Emit (>= 4.7.0)
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Easy.Extensions:
Package | Downloads |
---|---|
Easy.Extensions.DependencyInjection
依赖注入 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.1 | 1,853 | 5/24/2022 |
1.0.1-beta1 | 349 | 5/6/2022 |
1.0.0 | 760 | 5/5/2022 |
1.0.0-beta9 | 273 | 5/1/2022 |
1.0.0-beta8 | 311 | 4/27/2022 |
1.0.0-beta3 | 318 | 4/15/2022 |
1.0.0-beta2 | 246 | 4/13/2022 |
1.0.0-beta1 | 240 | 4/13/2022 |