I am a complete newbie in C # (I have never used it before), and lately I needed to learn the code written in it. I spent the longest time trying to track down a nonexistent method in a class that does not seem to be defined anywhere in the class that used it. Later, I found out that this is the “extension method” that I am collecting - it is a method grafted by some other class to another class.
I fully understand the rationale for this language function and actually find it pretty enjoyable. However, as a person who does not have much experience in this language, it complicates the search for unfamiliar methods, since this method can be defined anywhere.
My question is this: given an unfamiliar method call in C #, what is the best way for me to find additional information about this, given that it could be an extension method defined in a completely separate class?
source
share