public class Foo { public string Bar {get; set;} }
How do I get the value of Bar, a string property, via reflection? The following code will thr
PropertyInfo propInfo = f.GetType().GetProperty("Bar"); object[] obRetVal = new Object[0]; string bar = propInfo.GetValue(f,obRetVal) as string;