你能在类型数组上编写扩展方法吗?

Ben*_*ins 2 c# arrays extension-methods

我需要在byte []上编写扩展方法.那可能吗?

CMS*_*CMS 5

是的,只是做:

public static class Extensions
{
    public static void Method(this byte[] current)
    {

    }
}
Run Code Online (Sandbox Code Playgroud)