If you want to access class members (i.e. fields, properties, methods...) you shall use __reflection__ (System.Reflection namespace). Check [MSDN docs][1].
Here's a simple example that would get all the public fields defined in a `Test` class.
FieldInfo[] fields = typeof (Test).GetFields ();
[1]: https://msdn.microsoft.com/en-us/library/ms173183.aspx
↧