Reflection Extensions
ReflectValue
If the object contains a field with the specified name return the value of that field.
var foo = new Foo("baz");
var val = foo.ReflectValue("bar");
// val will be "baz"
class Foo{
public string bar;
}
If the object contains a field with the specified name return the value of that field.
var foo = new Foo("baz");
var val = foo.ReflectValue("bar");
// val will be "baz"
class Foo{
public string bar;
}