摘要:
struct 和 class的异同 一图理解struct和class的异同 1 相同点 A struct和class是同一等级的,属于命名空间下 B 可以定义字段、属性、方法、构造器等 C 有默认的无参构造方法 2 不同点 A 定义语法关键字不同(struct class) B struct是值类型 阅读全文
posted @ 2020-12-22 08:59
htiu
阅读(308)
评论(0)
推荐(0)
摘要:
string 字符串 定义语法:string s=”abc” string str=new string(new char[]{‘a’,’b’,’c’}) string和String string is an alias for String in the .Net Framework string 阅读全文
posted @ 2020-12-22 08:58
htiu
阅读(103)
评论(0)
推荐(1)