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

C# 你能在类型数组上写扩展方法吗?,c#,arrays,extension-methods,C#,Arrays,Extension Methods,我需要在字节[]上写一个扩展方法。有可能吗?当然,只需将第一个参数设置为byte[]是,只需执行以下操作: public static class Extensions { public static void Method(this byte[] current) { } }

我需要在字节[]上写一个扩展方法。有可能吗?

当然,只需将第一个参数设置为
byte[]
是,只需执行以下操作:

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

    }
}