ListBindingHelper.GetListItemType Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the data type of the items in the specified list.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public static Type GetListItemType(
	object list
)

Parameters

list
Type: System.Object

The list to be examined for type information.

Return Value

Type: System.Type

The Type of the items contained in the list.

If the list parameter is not a list or array, the type returned will be that of the list parameter itself.

.NET Framework
Available since 2.0
Return to top
Show: