Question

I'd like to write an extension method for string, which appears as a static method on System.String - I've not managed to get that done.

Is that possible? If so how? Thanks!

Was it helpful?

Solution

It's not possible. Extension methods let you add what look like instance methods, and not static methods.

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