FieldInfo

Did you know that you could get every information on fields contained in a class ? I didn’t know I could…. I should have googled it 6 months before….  😦 FieldInfo[] fields = this.GetType().GetFields(); foreach (FieldInfo fi in fields) { Console.WriteLine(fi.Name); } Yeah, I’m still a beginner… And I didn’t know about reflexion ! Shame…