Gets a property type.

Namespace: MonoSoftware.Core
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static Type GetPropertyType(
	this Object o,
	string propertyName
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetPropertyType ( 
	o As Object,
	propertyName As String
) As Type
Visual C++
public:
[ExtensionAttribute]
static Type^ GetPropertyType(
	Object^ o, 
	String^ propertyName
)
F#
static member GetPropertyType : 
        o : Object * 
        propertyName : string -> Type 

Parameters

o
Type: System..::..Object
Object
propertyName
Type: System..::..String
Property name

Return Value

Type: Type
Property type

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also