public static bool TryGetStartOfDocumentSlice(int documentSliceIndex, out DocumentSlice documentSlice) { if (DocumentList[documentSliceIndex].BookNumber != null) { documentSlice = DocumentList[documentSliceIndex]; return(true); } documentSlice = null; return(false); }
public static int GetStartIndex(DocumentSlice documentSlice) { var index = DocumentList.IndexOf(documentSlice); return(GetStartIndex(index)); }