Ildasm.Disassembler.IsNestedTypeWithNamespace C# (CSharp) Method

IsNestedTypeWithNamespace() static private method

static private IsNestedTypeWithNamespace ( Managed.Reflection.Type type ) : bool
type Managed.Reflection.Type
return bool
        static bool IsNestedTypeWithNamespace(Type type)
        {
            if (!type.IsNested)
            {
                return false;
            }
            if (type.IsConstructedGenericType)
            {
                type = type.GetGenericTypeDefinition();
            }
            return type.__Namespace != null;
        }