Пример #1
0
 bool IsAllowedType(Type type)
 {
     return(type != null &&
            !type.IsValueType &&
            !(type.GetCustomAttributes(typeof(CompilerGeneratedAttribute), false).Length > 0) &&
            !TypesToSkip.Contains(type));
 }
Пример #2
0
 bool IsAllowedType(Type type)
 {
     return(type != null &&
            !type.IsValueType &&
            !IsCompilerGenerated(type) &&
            !TypesToSkip.Contains(type));
 }