C# 函数参数中的this
摘要:public static class StringExtension { public static void Foo(this string s) { Console.WriteLine("Foo invoked for {0}", s); } } 为什么这里会有一个this关键字,做什么用?其
阅读全文
posted @ 2020-11-06 11:54
posted @ 2020-11-06 11:54