Click or drag to resize

imbTypeQueryExtensionsisCollection Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Returns TRUE if the type has IEnumerable interface implemented

Namespace:  imbSCI.Core.extensions.typeworks
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static bool isCollection(
	this Type type
)
Request Example View Source

Parameters

type
Type: SystemType
Type to test

Return Value

Type: Boolean
TRUE if it is array, collection, list or any other IEnumerable type

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. 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