Tech Off Post

Single Post Permalink

View Thread: Acces class properties at runtime in C#
  • User profile image

    I'm not sure I understand your question. Can you describe in more details what you are trying to do? If you already have a reference (of FieldInfo) to a particular field in question from the type, you can access that particular field on any instance of your class using that FieldInfo. FieldInfo.SetValue or GetValue requires you to pass the instance of the object of the field you want to set or retrieve.