FindEntryIndex() 공개 메소드

public FindEntryIndex ( int lineIndex ) : int
lineIndex int
리턴 int
예제 #1
0
        public static int FindNextEntryIndex(this PatchDocument document, int lineIndex)
        {
            var entryIndex = document.FindEntryIndex(lineIndex);

            return(Math.Min(entryIndex + 1, document.Entries.Count - 1));
        }
예제 #2
0
        public static int FindPreviousEntryIndex(this PatchDocument document, int lineIndex)
        {
            var entryIndex = document.FindEntryIndex(lineIndex);

            return(Math.Max(entryIndex - 1, 0));
        }