Get value of a public static field via reflection

You need to pass null to GetValue, since this field doesn’t belong to any instance:

fields[0].GetValue(null)

Leave a Comment