Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public static class GenericCollectionFormatter
The following criteria are checked: type implements System.Collections.Generic.ICollection<T>, type is not abstract, type is not a generic type definition, type is not an interface, type has a public parameterless constructor.
public static bool CanFormat(Type type, out Type elementType)
System.Type | type | The collection type to check. |
System.Type | elementType | The element type of the collection. |
System.Boolean |
|
System.ArgumentNullException | The type argument is null. |