internal ExplicitInterfaceIndexerWithMonoCecil(ITypeWithMonoCecil declaringType, PropertyDefinition indexer) { this.indexer = new IndexerWithMonoCecil(declaringType, indexer); TypeReference interfaceType = indexer.Method().FindExplicitInterface(); explicitInterface = new InterfaceReferenceWithMonoCecil(declaringType.Assembly, interfaceType); }
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); } }
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); } }