public static IsCollection ( |
||
actualType | ||
return | bool |
public static bool IsCollection(Type actualType)
{
var typeToCheck = actualType.IsGenericType ? actualType.GetGenericTypeDefinition() : actualType;
return SpeciallySerializedCollections.Contains(typeToCheck);
}
CollectionMetaToken::IsCollection ( Antmicro.Migrant.TypeDescriptor actualType ) : bool |
internal static CreationWay GetCreationWay(Type actualType, bool treatCollectionAsUserObject) { if (Helpers.CanBeCreatedWithDataOnly(actualType, treatCollectionAsUserObject)) { return(CreationWay.Null); } if (!treatCollectionAsUserObject && CollectionMetaToken.IsCollection(actualType)) { return(CreationWay.DefaultCtor); } if (typeof(ISpeciallySerializable).IsAssignableFrom(actualType)) { return(CreationWay.DefaultCtor); } return(CreationWay.Uninitialized); }