摘要:
this 在Struct 中是可读可写的this 在Class中是只读的例子如下://Classpublic class A{ public A(string json) { this = JsonSerializor.DeSerialize<T>(json) ; // 编译错误 } public string Name{get;set;}}//Structpublic struct B{ public B(string json) { this = JsonSerializor.DeSerialize<T>(json) ; // OK,没有... 阅读全文