Gets the type of this property.
Assemblies: System.Reflection (in System.Reflection.dll)
mscorlib (in mscorlib.dll)
To determine the type of a particular property, do the following:
Get a Type object that represents the type (the class or structure) that contains the property. If you are working with an object (an instance of a type), you can call its GetType method. Otherwise, you can use the C# typeof operator or the Visual Basic GetType operator, as the example illustrates.
Get a PropertyInfo object that represents the property in which you're interested. You can do this by getting an array of all properties from the Type.GetProperties method and then iterating the elements in the array, or you can retrieve the PropertyInfo object that represents the property directly by calling the Type.GetProperty method and specifying the property name.
Retrieve the value of the property from the PropertyInfo object.