>
>You can also use linQ to see if the property exists and to return the properties value.
>>>>if( MyClass.GetType().GetProperty (propName) != null)
>>{
>> object propValue = MyClass.GetType().GetProperty(propName).GetValue(MyClass, new object[]{});
>>}
>>
>
>I'm with Viv on this one ... that's just Reflection, same as I used. There is no LINQ in your example at all.
>
>~~Bonnie
Sorry, I was typing between waiting for my current work to build. I meant to say LinQ/Reflection. You can use linq or you can use reflection to get the same results.
Charlei Calverts book shows both forms.