G 
		
								
				
				
			
		Guest
I'm learning C#.  I need to implement an indexer using an array list.  I have
the following code and I'm getting an error "Inconsistent accessibility:
indexer return type CRegs is less accessible than indexer Whouse.this[int].
Would someone please tell me why?
public class Whouse : IEnumerable
public CRegs this[ int index ] // Indexer
{
get
{
return(myRegs[ this ]);
}
}
ArrayList myRegs = new ArrayList(); //
				
			the following code and I'm getting an error "Inconsistent accessibility:
indexer return type CRegs is less accessible than indexer Whouse.this[int].
Would someone please tell me why?
public class Whouse : IEnumerable
public CRegs this[ int index ] // Indexer
{
get
{
return(myRegs[ this ]);
}
}
ArrayList myRegs = new ArrayList(); //