Question

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

Was it helpful?

Solution

yes, just do :

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

    }
}

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top