上一页 1 2 3 4 5 6 ··· 33 下一页
摘要: Go 语言范围(Range) 阅读全文
posted @ 2023-02-13 16:05 刘靖凯 阅读(45) 评论(0) 推荐(0) 编辑
摘要: Go 语言切片(Slice) 阅读全文
posted @ 2023-02-13 15:53 刘靖凯 阅读(60) 评论(0) 推荐(0) 编辑
摘要: Go 语言结构体 阅读全文
posted @ 2023-02-13 10:23 刘靖凯 阅读(12) 评论(0) 推荐(0) 编辑
摘要: string是开发过程中,使用频度最高的类型之一,所以在构建类型时作了很多处理,如“不可变性”,“保留性”等特点。 string的常量是在""引号中进行赋值的。 var str1 = "这是一段文字"; Console.WriteLine(str1); 之后,为了字符串的格式化,引入了$""定义方式 阅读全文
posted @ 2023-02-11 22:52 刘靖凯 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 访问修符,是OOP中一个很重要的知识点。在C#中,class(类)的访问修饰符有public和internal两种。 类成员(属性,方法,字段,事件等)的访问修饰符public,internal,protected,private,internal protected,protected priva 阅读全文
posted @ 2023-02-11 15:16 刘靖凯 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 从System.Text.Json诞生,就在努力增加功能和提升性能,在.NET7中,又带来了多态的适配。 下面是一个父类Customer,两个子类,WechatCustomer和LineCustomer。 public class Customer { public string Name { ge 阅读全文
posted @ 2023-02-11 15:03 刘靖凯 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Go 语言指针 阅读全文
posted @ 2023-02-10 15:26 刘靖凯 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Go 语言数组 阅读全文
posted @ 2023-02-10 14:31 刘靖凯 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Go 语言变量作用域 阅读全文
posted @ 2023-02-10 14:18 刘靖凯 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Go 语言函数 阅读全文
posted @ 2023-02-10 13:26 刘靖凯 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 33 下一页