Пример #1
0
        public virtual bool IsTypeToBeIntrospected(Type type)
        {
            var returnType = FilterNullableAndProxies(type);

            return(!IsTypeIgnored(returnType) &&
                   !IsTypeUnsupportedByReflector(returnType) &&
                   IsTypeWhiteListed(returnType) &&
                   (!FasterTypeUtils.IsGenericCollection(type) || type.GetGenericArguments().All(IsTypeToBeIntrospected)));
        }
Пример #2
0
 public virtual string GetKeyForType(Type type) =>
 FasterTypeUtils.IsGenericCollection(type)
         ? $"{type.Namespace}.{type.Name}"
         : FasterTypeUtils.IsObjectArray(type)
             ? "System.Array"
             : type.GetProxiedTypeFullName();