internal ExplicitInterfaceIndexerWithMonoCecil(ITypeWithMonoCecil declaringType, PropertyDefinition indexer)
        {
            this.indexer = new IndexerWithMonoCecil(declaringType, indexer);
            TypeReference interfaceType = indexer.Method().FindExplicitInterface();

            explicitInterface = new InterfaceReferenceWithMonoCecil(declaringType.Assembly, interfaceType);
        }
Ejemplo n.º 2
0
        internal StructIndexerWithMonoCecil(ITypeWithMonoCecil declaringType, PropertyDefinition indexer)
        {
            this.indexer = new IndexerWithMonoCecil(declaringType, indexer);
            if (this.indexer.GetAccessor != null)
            {
                getAccessor = new StructAccessorWithMonoCecil(this, this.indexer.GetAccessor);
            }

            if (this.indexer.SetAccessor != null)
            {
                setAccessor = new StructAccessorWithMonoCecil(this, this.indexer.SetAccessor);
            }
        }
Ejemplo n.º 3
0
        internal SealedClassIndexerWithMonoCecil(IInternalTypeWithMonoCecil declaringType, PropertyDefinition indexer)
        {
            this.indexer       = new IndexerWithMonoCecil(declaringType, indexer);
            this.declaringType = declaringType;
            if (this.indexer.GetAccessor != null)
            {
                getAccessor = new ClassAccessorWithMonoCecil(this, this.indexer.GetAccessor);
            }

            if (this.indexer.SetAccessor != null)
            {
                setAccessor = new ClassAccessorWithMonoCecil(this, this.indexer.SetAccessor);
            }
        }