public virtual int GetLength(object array) { if (array is GenericArray) { return(((GenericArray)array).GetLength()); } return(_delegate.GetLength(array)); }
protected virtual BitMap4 NullItemsMap(IReflectArray reflector, object array) { int arrayLength = reflector.GetLength(array); BitMap4 nullBitMap = new BitMap4(arrayLength); for (int i = 0; i < arrayLength; i++) { if (reflector.Get(array, i) == null) { nullBitMap.Set(i, true); } } return(nullBitMap); }
public ReflectArrayIterator(IReflectArray reflectArray, object array) : base(reflectArray .GetLength(array)) { _reflectArray = reflectArray; _array = array; }
protected virtual BitMap4 NullItemsMap(IReflectArray reflector, object array) { int arrayLength = reflector.GetLength(array); BitMap4 nullBitMap = new BitMap4(arrayLength); for (int i = 0; i < arrayLength; i++) { if (reflector.Get(array, i) == null) { nullBitMap.Set(i, true); } } return nullBitMap; }