My ctor return an object which is multidimentional array. Depends on constructor argument, the object returned by ctor can be different rank array, but always int.
object arr = new int[2,2,2];
or
object arr = new int[2,2,2,2,2];
or
object arr = new int[0,0];
Having arr object constructed, and knowing what it is (GetType()), I'd like to access array methods like Rank, GetLength, GetValue etc. How I can access child specific methods from the object level? For now I have only four methods for arr object accessible: Equals, GetHashCode, GetType, and ToString
objectin the first place when you know its an integer array? (or similar at least)Arraybut still that's not a right thing to do. Type it asint[]. Your underlying problem is different. Maybe you need different implementation of the classes for different types of array.