Extension method: Difference between revisions

Content deleted Content added
Line 13:
string y = Utility.Reverse(x);
 
This may, however, become increasingly difficult to navigate as the library of utility methods and classes increases, especiallyparticularly for newcomers. The ___location is also less intuitive because, unlike most string methods, it would not be a member of the string class, but in a completely different class altogether. A better syntax would therefore be the following:
string x = "some string value";
string y = x.Reverse();