static bool CanTakeType(Type type) { return(AllTypes.Contains(type) || type.GetGenericArguments().Any(x => CanTakeType(x))); }
static bool CanTakeType(Type type) { return(AllTypes.Contains(type) || type.GetGenericArguments().Any(x => CanTakeType(x))); }