How to get a property value using reflection

Something like this should work:

var value = (string)GetType().GetProperty("SomeProperty").GetValue(this, null);

Leave a Comment