public override void Execute(NeoDatis.Odb.OID oid, NeoDatis.Odb.Core.Layers.Layer2.Meta.AttributeValuesMap values) { System.Collections.Generic.IList<object> l = (System.Collections.Generic.IList<object >)values[attributeName]; int localFromIndex = fromIndex; int localEndIndex = fromIndex + size; // If not throw exception, we must implement // Index Out Of Bound protection if (!throwExceptionIfOutOfBound) { // Check from index if (localFromIndex > l.Count - 1) { localFromIndex = 0; } // Check end index if (localEndIndex > l.Count) { localEndIndex = l.Count; } } sublist = new NeoDatis.Odb.Impl.Core.Query.List.Objects.LazySimpleListOfAOI<object >(size, GetInstanceBuilder(), ReturnInstance()); sublist.AddAll(NeoDatis.Tool.Wrappers.List.NeoDatisCollectionUtil.SublistGeneric( l, localFromIndex, localEndIndex)); }
public override void Execute(NeoDatis.Odb.OID oid, NeoDatis.Odb.Core.Layers.Layer2.Meta.AttributeValuesMap values) { System.Collections.Generic.IList <object> l = (System.Collections.Generic.IList <object >)values[attributeName]; int localFromIndex = fromIndex; int localEndIndex = fromIndex + size; // If not throw exception, we must implement // Index Out Of Bound protection if (!throwExceptionIfOutOfBound) { // Check from index if (localFromIndex > l.Count - 1) { localFromIndex = 0; } // Check end index if (localEndIndex > l.Count) { localEndIndex = l.Count; } } sublist = new NeoDatis.Odb.Impl.Core.Query.List.Objects.LazySimpleListOfAOI <object >(size, GetInstanceBuilder(), ReturnInstance()); sublist.AddAll(NeoDatis.Tool.Wrappers.List.NeoDatisCollectionUtil.SublistGeneric( l, localFromIndex, localEndIndex)); }