DNStar.lib 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DNStar.lib --version 1.1.0                
NuGet\Install-Package DNStar.lib -Version 1.1.0                
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="DNStar.lib" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DNStar.lib --version 1.1.0                
#r "nuget: DNStar.lib, 1.1.0"                
#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.
// Install DNStar.lib as a Cake Addin
#addin nuget:?package=DNStar.lib&version=1.1.0

// Install DNStar.lib as a Cake Tool
#tool nuget:?package=DNStar.lib&version=1.1.0                

DNS.lib 更名为 DNStar.lib

DNStar.lib(v1.1)

由码农猩球提供用于扩展的类库。

Install-Package DNStar.lib

示例

var str = "sample";

//原来
if(stirng.IsNullOrEmpty(str)){ ... }

//现在
if(str.IsNullOrEmpty()){ ... }

//原来
string.Format("this is {0}, maybe has {1}....", name, person);

//现在
"this is {0}, maybe has {1} ....".StringFormat(name,person);

//这是 C# 6.0 的语法
$"this is {name}, maybe has {person}";

//转换成 base64 字符串
"sample".ToBase64String();

//从 base64string 转换成正常字符串
"YWRtaW5pc3RyYXRvcg==".FromBase64String();
    
//扩展了对任何数组的遍历
new[]{ 1,2,3,4,5,6,7}.ForEach(item => Console.WriteLine(item));

环境支持

  • .NET Framework 4.6.1+
  • .NET Core 2.0+,
  • .NET Standard 2.0+

请使用 VS2017 打开此项目

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  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.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DNStar.lib:

Package Downloads
CAST.COM.IdentityCenter.AspNetCore

支持 ASP.NET CORE 框架的认证中心 SDK。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 1,298 1/29/2018
1.1.0 1,011 12/26/2017

-----string-----
【add】LastIndexOfRemove()
【add】Concat()
【add】ToMemoryStream()
【add】FromMemoryStream()

-----Linq-----
【modify】Paged()
【remove】IPagedCollection

------Collection------
【remove】AddIfNotContains()
【remove】Merge()
【remove】AddOrMerge()

-----ActivatorExt------
【add】CreateInstance<T>(args)