internal NestedClassWithReflection(ITypeWithReflection declaringType, Type type)
        {
            this.declaringType    = declaringType;
            hiddenMembersAnalyzer = new HiddenMembersAnalyzer(type);
            this.type             = type;
            if (type.BaseType != null && type.BaseType != typeof(object))
            {
                baseClass = new ClassReferenceWithReflection(type.BaseType);
            }

            typeWithReflection = new ClassTypeWithReflection(this);
            destructor         = new Lazy <DestructorWithReflection>(() =>
            {
                MethodInfo destructorMethod = typeWithReflection.Destructor;
                return(destructorMethod == null ? null : new DestructorWithReflection(this, destructorMethod));
            });
        }
Esempio n. 2
0
 public ClassFieldCollection(ClassTypeWithReflection typeWithReflection)
 {
     this.typeWithReflection = typeWithReflection;
 }
 internal ClassNestedStructCollection(ClassTypeWithReflection typeWithReflection)
 {
     this.typeWithReflection = typeWithReflection;
 }