C# recursion in 'new' method
c#, new-operator
Solution
You can use base keyword to access members of the base class including indexers. Try to use next code snippet to call indexer on base class:
return base[index];
Problem
I have this code in my class MyClass: ``` public new MyClass this[int index] { get { if (Count > index) { return this[index]; } //...MyActions... return null; } } ``` In string... ``` return this[index] ``` ... i have recursion, but i need use properties in base class. I dont know how do it. Example: ``` return base.this[index] ``` But i dont may 'override' this method, only set 'new'. I sad How do it? Sorry my very bad english and thanks