I have a method which accesses many fields, so it’s hard coded into its class. I would like to make it reusable by other classes.
Is there any way of getting a list of all fields and methods (within the same class) that a method accesses?
I’m using VS2010.
Sure, take that method out of the class and put it into an empty class and try to compile. Compiler will complain about a list of fields that this method wants to access but could not find.