internal PageMember(IQueryEntryState <T> state, int offset, ref int startIndex) { if (offset < 0) { throw new ArgumentOutOfRangeException(nameof(offset), "offset can not be less than zero."); } _startIndex = startIndex; _memberValue = default(T); _offset = offset; _state = state; }
internal PageMember(T memberValue, int offset, ref int startIndex) { if (offset < 0) { throw new ArgumentOutOfRangeException(nameof(offset), "offset can not be less than zero."); } _startIndex = startIndex; _memberValue = memberValue; _offset = offset; _state = null; }
public static PageMember <T> Create <T>(IQueryEntryState <T> state, int offset, ref int startIndex) => new PageMember <T>(state, offset, ref startIndex);