I would like to get the line #s of a type\'s fields. To get the line #\'s of the statements in a method it is simple enough:
In C# / .NET 4.0 I am trying to retrieve a field value through reflection with: var bar = foo.GetType()
I want to get all the fields of a class without getting the underlying implementations of the class e开发者_如何学Pythonvent.
I have a question: Is there an elegant way of getting Attributes on a referenced field. Ie.: public class C1: Base