can you write extension methods on type arrays?
-
05-07-2019 - |
Question
I need to write an extension method on a byte[]. Is that possible?
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