Gets if the collection type col
can accepts items of type
item
.
Declaration
public static bool CanCollectionAdd(Type col, Type item)
Parameters
Type |
Name |
Description |
System.Type |
col |
|
System.Type |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Gets if the collection type col
can accept the specified items.
Declaration
public static bool CanCollectionAdd(Type col, IEnumerable items)
Parameters
Type |
Name |
Description |
System.Type |
col |
|
System.Collections.IEnumerable |
items |
|
Returns
Type |
Description |
System.Boolean |
|