Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# C语言中扩展方法的说明#_C#_.net_Windows - Fatal编程技术网

C# C语言中扩展方法的说明#

C# C语言中扩展方法的说明#,c#,.net,windows,C#,.net,Windows,可能的重复项: 有人能举例说明扩展方法的概念吗如果可能的话请扩展方法使您能够向现有类型“添加”方法,而无需创建新的派生类型、重新编译或以其他方式修改原始类型 参考:

可能的重复项:


有人能举例说明扩展方法的概念吗如果可能的话请

扩展方法使您能够向现有类型“添加”方法,而无需创建新的派生类型、重新编译或以其他方式修改原始类型

参考: