P
Peter
Hi
i have a class eg.
class Person
{
public string surname...
public string phone....
}
i know, its possible to get a propertydescriptor with the name
(string) or index (int)
o = new person()
propertydescriptor pd =TypeDescriptor.GetProperties(o)["phone"]
OK
but how can i get the propertydescriptor directly (without the name
oder index)
like " propertydescriptor pd = ....GetPropertyDescriptor(o.phone) "
thanks
Peter
i have a class eg.
class Person
{
public string surname...
public string phone....
}
i know, its possible to get a propertydescriptor with the name
(string) or index (int)
o = new person()
propertydescriptor pd =TypeDescriptor.GetProperties(o)["phone"]
OK
but how can i get the propertydescriptor directly (without the name
oder index)
like " propertydescriptor pd = ....GetPropertyDescriptor(o.phone) "
thanks
Peter