Click or drag to resize

GuardIsCollectionType Method

[This is preliminary documentation and is subject to change.]

Checks if t is a collection type

Namespace:  CSInfrastructure.CodeContracts
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public static Type IsCollectionType(
	Type t,
	string paramName
)

Parameters

t
Type: SystemType
The type to check
paramName
Type: SystemString
The name of the parameter being checked

Return Value

Type: Type
The type being checked
Exceptions
ExceptionCondition
ArgumentExceptionThrown when t is not a collection type or when it does not implement or inherit from IEnumerable
See Also