摘要: 先看下面的代码: public static class StringExtension{ public staticvoid Foo(this string s) { Console.WriteLine("Foo invoked for {0}",s); }} 为什么这里会有一个this关键字,做 阅读全文
posted @ 2022-06-21 16:05 曲琦 阅读(247) 评论(0) 推荐(0) 编辑