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 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:
TypeThe type being checked
Exceptions Exception | Condition |
---|
ArgumentException | Thrown when t is not a collection type or when it does not implement or inherit from IEnumerable |
See Also