G
Guest
Hi guys,
Using C# I have a class with a number of public properties and a public
method.
The idea is to call the method (externally), selecting one of those
properties. Do some work with the property, and then return a value.
Something like this:
public string MyMethod(MyClass.MyProperties selectedProperty)
{
// do some work
return "bla, bla, bla" + _SelectedPropertyValue;
}
Is it possible? I can't seem to find some way to "list" the properties or to
retrieve the property value "dynamically".
Thanks a lot!
Using C# I have a class with a number of public properties and a public
method.
The idea is to call the method (externally), selecting one of those
properties. Do some work with the property, and then return a value.
Something like this:
public string MyMethod(MyClass.MyProperties selectedProperty)
{
// do some work
return "bla, bla, bla" + _SelectedPropertyValue;
}
Is it possible? I can't seem to find some way to "list" the properties or to
retrieve the property value "dynamically".
Thanks a lot!