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