How to get private, constant or static value of a field with reflection
To get the value of a private field of an instance in C#: Similarly, you can quite easily retrieve the value of a const or static field for a type, simply replace BindingFlags.Instance with BindingFlags.Static and call GetValue with null: