dotnet-easy / easy-dotnet Goto Github PK
View Code? Open in Web Editor NEWA Simple Way to Learn. NET
Home Page: https://easy-dotnet.com
License: MIT License
A Simple Way to Learn. NET
Home Page: https://easy-dotnet.com
License: MIT License
在小标题选取从结尾位置开始的一段范围中,文档代码如下
int[] numbers = new[] { 0, 10, 20, 30, 40, 50 };
int amountToTakeFromEnd = 3;
int[] subset = numbers[^amountToTakeFromEnd..];
Display(subset); // output: 20 30 40
output 的结果应为 30 40 50
我发现选取从结尾位置开始的一段范围与省略右操作数基本一致,不知道是否为有意为之。文档代码如下
int[] numbers = new[] { 0, 10, 20, 30, 40, 50 };
int[] subset = numbers[^3..];
Display(subset); // output: 30 40 50
选取数组中的范围中的四组代码通过只使用一次的变量来使用范围运算符,感觉降低了可读性
CommunityToolkit.Mvvm:WPF工具类
MaterialDesignThemes:WPF ui框架
PropertyChanged.Fody:WPF工具类
LiveCharts:WPF统计图
LiveChartsCore.SkiaSharpView:LiveChart2升级版,Nuget搜索时勾选包括预发行版本可以搜索到
OxyPlot:WPF统计图UI
Prism:算是WPF侵入式框架,需要搭配Prism 项目模板使用,使用起来要按照Prism的解决方案来写WPF
没有kafka和Eventbus
net2.1的发布时间是2018年的11月,目前时间轴上的是2019年的11月,见Announcing .NET Standard 2.1
看了文档目录,然后搜索了下发现好像是没有AOT相关的内容,后续可以添加吗?
delegate int CalculateDelegate(int x, int y);
class Program
{
static int Add(int x, int y)
{
return x + y;
}
static int Multiply(int x, int y)
{
return x * y;
}
static void Main(string[] args)
{
CalculateDelegate addDelegate = new CalculateDelegate(Add);
CalculateDelegate multiplyDelegate = new CalculateDelegate(Multiply);
CalculateDelegate chainDelegate = addDelegate + multiplyDelegate;
int result = chainDelegate(2, 3);
Console.WriteLine(result); // 输出:8
}
}
dotnet版本:7.0.304
输出结果是 6,不是 8
没有图片转base64 功能
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.