public IndexerDeclaration AddIndexer(ITypeDeclaration type) { if (type==null) throw new ArgumentNullException("type"); IndexerDeclaration index = new IndexerDeclaration( this, type ); this.indexers.Add(index); return index; }