Esempio n. 1
0
        internal ClassIndexerWithReflection(IInternalTypeWithReflection declaringType, PropertyInfo indexer)
        {
            this.indexer       = new IndexerWithReflection(declaringType, indexer);
            this.declaringType = declaringType;
            if (this.indexer.GetAccessor != null)
            {
                getAccessor = new ClassAccessorWithReflection(this, this.indexer.GetAccessor);
            }

            if (this.indexer.SetAccessor != null)
            {
                setAccessor = new ClassAccessorWithReflection(this, this.indexer.SetAccessor);
            }
        }
 internal ExplicitInterfaceIndexerWithReflection(ITypeWithReflection declaringType, Type interfaceType, PropertyInfo indexer)
 {
     this.indexer      = new IndexerWithReflection(declaringType, indexer);
     explicitInterface = new InterfaceReferenceWithReflection(interfaceType);
 }