c# - Extension method on type -


Is there a way to create an extension method for that type? I am able to make them for examples.

  public static class MyExtensions {public static string test (this string) {return "test"; }} Public class test {static zero test it} {string.Test ()); // string will not compile the s = null; S.Test (); }}  

No, this is not possible. Extension methods can only be made for example


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -