Example #1
0
 public static int GetFirstIndex(this TextRow row,
                                 string sought, StringComparison comparison) =>
 row.GetFirstIndex(s => string.Equals(s, sought, comparison));
Example #2
0
        // Methods that get the index of first match; otherwise throw

        public static int GetFirstIndex(this TextRow row, string sought) =>
        row.GetFirstIndex(sought, StringComparison.Ordinal);