bool IsAllowedType(Type type) { return(type != null && !type.IsValueType && !(type.GetCustomAttributes(typeof(CompilerGeneratedAttribute), false).Length > 0) && !TypesToSkip.Contains(type)); }
bool IsAllowedType(Type type) { return(type != null && !type.IsValueType && !IsCompilerGenerated(type) && !TypesToSkip.Contains(type)); }