Coder Social home page Coder Social logo

easy-dotnet's Introduction

easy-dotnet

A Simple Way to Learn. NET(活跃开发者聚集地)

微信:ygdxg8657 (备注进群) QQ群:903210423(已满)543829648

介绍

  1. 这个开源项目的初衷是打造一个好用的、面向.NET程序员的 知识库
  2. 轻松构建一个 本地资源化 的知识库,让你的知识海洋像一本本书一样清晰易读。
  3. 你可以在自己的主机上自行部署构建。
  4. 邀请您一起参与共创,提高项目的质量和可靠性,促进开发者的成长和技能提升,同时帮助更多的开发者。

快速上手

  • 推荐预先安装 nodejs 16
# clone the project
git clone https://github.com/786744873/easy-dotnet

# enter the project directory
cd easy-dotnet

# install dependency
npm install --registry=https://repo.huaweicloud.com/repository/npm/ # or yarn install

# develop
npm run dev # or yarn dev

⚡ 反馈与交流

在使用过程中有任何问题和想法,请给我提 Issue。你也可以在Issue查看别人提的问题和给出解决方案。

或者加入我们的交流群:参与贡献可以榜上留名💯

easy-dotnet's People

Contributors

786744873 avatar aierong avatar ayueryi avatar frankozay avatar goodsxx avatar timchen44 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

easy-dotnet's Issues

【范围运算符】输出结果有误 & 内容重复

输出结果有误

在小标题选取从结尾位置开始的一段范围中,文档代码如下

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

其他的一些小建议

选取数组中的范围中的四组代码通过只使用一次的变量来使用范围运算符,感觉降低了可读性

教程部分委托链代码注释有问题

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

没有AOT相关内容

看了文档目录,然后搜索了下发现好像是没有AOT相关的内容,后续可以添加吗?

教程中 NET微服务-日志,关于 Serilog 的示例代码不正确

在学习 使用-详细使用-日志属性 的示例代码中,第 12 行代码:

// 示例代码
Log.Information("Processed {@Count} records in {Time} ms.", new { Count = 10, Time = 123 });
// 我的输出结果
[21:27:40 INF] Processed {"Count": 10, "Time": 123} records in {Time} ms.
// 教程给定结果
Processed { Count: 10, Time: 123 } records in 0 ms.

占位符属性 {Time} 没有对应的参数,我的运行结果是直接输出了属性名而非一个值。
是由于版本不同而出现的不同结果么?

Serilog version: 3.1.1
Serilog.Sinks.Console version: 5.0.1
Visual Studio 2022 version: 17.9.6
.NET version: 8.0.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.