Wednesday, August 7, 2013

Extension Methods


  • in order for the extension method to be visible - the method must be in a static class. If its in, lets say,the main of as console app, it will compile - you can reference it directly, but not from the instance .
  • extension methods only work on instances, not static classes 

No comments:

Post a Comment