Any ideas? I marked it as static but it's not working!
class ExtensionMethods
{
public static int Add(this int number, int increment)
{
return number + increment;
}
}
You are missing a static on the class. The compiler should have told you this?
public static class ExtensionMethods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With