#811 – Extension Methods Can Only Access Public Members of Class
March 29, 2013 1 Comment
When you write an extension method to extend the behavior of an existing class, the code in your extension method has access only to the public members of the class being extended. Even though the code that you are writing acts as a new instance method on the class, the code within your method has no special access to the members of the class beyond its public members.