摘要: public void TestFunc() { Complex complex1 = new Complex(); Complex complex2 = new Complex(); var s = complex1 + complex2; } } pub... 阅读全文
posted @ 2018-05-30 23:01 谁说程序猿很猥琐 阅读(8204) 评论(0) 推荐(0) 编辑
摘要: namespace test { // 泛型的协变,T 只能作为返回的参数 public interface Class1<out T> { T Get(); int Count { get; } } public class Class2 : Class1<String> { public Str 阅读全文
posted @ 2018-05-30 22:13 谁说程序猿很猥琐 阅读(367) 评论(0) 推荐(0) 编辑
摘要: namespace _6._0新特性 { using static _6._0新特性.Statics.StaticClass; class Program { static void Main(string[] args) { // 特性01 静态的using 声明 //之前的调用方式 类... 阅读全文
posted @ 2018-05-30 21:37 谁说程序猿很猥琐 阅读(145) 评论(0) 推荐(0) 编辑