Robert,
Look in the System.Reflection namespace.
Specifically, you have to load the Type instance for MyObject, and then
pass that to the static CreateInstance method on the Activator class to
create an instance. Then, from the type, you have to get the PropertyInfo
(through the GetProperty method on the Type) for the SomeProperty property.
Once you have that, you can get the value through the GetValue method on
the PropertyInfo that is returned from GetProperty.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Robert Towne" <no_spam@_nospam.com> wrote in message
news:uc****************@TK2MSFTNGP05.phx.gbl...
If I have a string representation of a property such as
"MyObject.SomeProperty", how would I then create a "MyObject" object and
invoke "SomeProperty". Any assistance would be appreciated. Thanks.