The innner struct ObjectContract.IndexType is now a class and implements IEualityComparer<T>.