C# Extension Methods(C#类方法扩展)
摘要:使用Extension methods 可以在已有的类型(types)中添加方法(Methods),而无需通过增加一种新的类型或修改已有的类型。 比如说,想要给string类型增加一个PrintStrLength()方法,打印出字符串的长度。使用Extension methods可以不需要去修改st
阅读全文
posted @ 2019-05-27 00:44
posted @ 2019-05-27 00:44
posted @ 2019-05-15 18:23