views:

151

answers:

2

I need to write an extension method on a byte[]. Is that possible?

+1  A: 

Sure, just make the first parameter of type byte[].

Greg Beech
+5  A: 

yes, just do :

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

    }
}
CMS