internal bool Find(int aRow, ref int Index) { if (!FSorted) { Sort(); } Index = FList.BinarySearch(0, FList.Count, new TEscherOPTRecord(aRow), CacheComparer); //Only BinarySearch compatible with CF. bool Result = Index >= 0; if (Index < 0) { Index = ~Index; } return(Result); }
internal bool Find(long aShapeId, ref int Index) { if (!FSorted) { Sort(); } SearchRecord.ShapeId = aShapeId; Index = FList.BinarySearch(0, FList.Count, SearchRecord, CacheComparer); //Only BinarySearch compatible with CF. bool Result = Index >= 0; if (Index < 0) { Index = ~Index; } return(Result); }