首先说明,视频教程、源码并非本人原创 本人将项目分割开,并写了一些说明。 该视频教程 地址 https://study.163.com/course/courseMain.htm?courseId=1005955006 原作者 笔者正在学 ASP.NET Core ,发现这位[......] 继续阅读
首先说明,视频教程、源码并非本人原创 本人将项目分割开,并写了一些说明。 该视频教程 地址 https://study.163.com/course/courseMain.htm?courseId=1005955006 原作者 笔者正在学 ASP.NET Core ,发现这位[......] 继续阅读
C# 的类型转换有 显式转型 和 隐式转型 两种方式。 显式转型:有可能引发异常、精确度丢失及其他问题的转换方式。需要使用手段进行转换操作。 隐式转型:不会改变原有数据精确度、引发异常,不会发生任何问题的转换方式。由系统自动转换。 不同类型的数据进行操作(加减乘除赋值等等),是[......] 继续阅读
C# provides two types of type conversion: explicit conversion and implicit conversion. Explicit conversion: This type of conversion may cause exceptio[......] 继续阅读
Declaration of Multidimensional Arrays When declaring, the length of the array must be specified, in the format of type [length, length, length, ... ][......] 继续阅读
多维数组的声明 在声明时,必须指定数组的长度,格式为 type [lenght ,lenght ,lengh, ... ] int [,] test1 = new int [3,3]; 或声明时即赋值,由系统推断长度 int [,] test1 = { {1,2,3[......]继续阅读
The general usage format is int pagesize = page size (size of each page)int pageindex = the page number (this variable generally increments with eac[......]继续阅读
一般使用格式为 int pagesize = 分页大小(每一页大小)int pageindex = 第几页(一般这个变量是随循环递增的) 使用方法.Skip(pagesize*pageindex).Take(pagesize) .Skip() 忽略数,表示从哪里开始分[......] 继续阅读
使用app.UseFileServer 在 public void Configure(){}中,修改或添加 1 app.UseFileServer(new FileServerOptions() 2 { 3 FileProvide[......]继续阅读
Using app.UseFileServer In public void Configure(){} modify or add 1 app.UseFileServer(new FileServerOptions() 2 { 3[......]继续阅读
About ListBox ListBox is a list control in WinForm that provides a list of items (a set of data items) from which users can select one or more entries[......] 继续阅读
关于ListBox ListBox是WinForm中的 列表 控件,它提供了一个项目列表(一组数据项),用户可以选择一个或者多个条目,当列表项目过多时,ListBox会自动添加滚动条,使用户可以滚动查阅所有选项。ListBox可以预先设定列表内容,也可以绑定其他控件或数据库,自动[......] 继续阅读
Exploring char and string in C# [TOC] 1. System.Char Character char is an alias for System.Char. System.Char occupies two bytes, which is 16 binary bi[......] 继续阅读
探究 C# 中的 char 、 string(一) [TOC] 1. System.Char 字符 char 是 System.Char 的别名。 System.Char 占两个字节,16个二进制位。 System.Char 用来表示、存储一个 Unicode 字符。 System.Char 的表示[......] 继续阅读
For context classes, there should be an overloaded base(options) constructor. public partial class DatabaseContext : DbContext { publi[......]继续阅读
对于上下文类,要有一个 base(options) 构造函数重载。 public partial class DatabaseContext : DbContext { public DatabaseContext() { }[......]继续阅读
// Set up client HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization =[......]继续阅读
// 设置 client HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Authorization = new[......]继续阅读
Common Value Types Value type variables can be directly assigned a value. They are derived from the class System.ValueType. | Type | Description[......] 继续阅读