refactor string extension ic_equals -> iequals
This commit is contained in:
1 parent
dc8b0b8359
commit
2a295237a6
2 files changed
+2
-2
No files matched your search
@@ -364,7 +364,7 @@ namespace mbts.spark {
|
||||
col.SortDirection = null;
|
||||
if (state.sorting is IReadOnlyList<SortingCriteria> sorting) {
|
||||
foreach (var sc in sorting) {
|
||||
this.OfType<ICVOrderBookColumn>().ApplyToFirst(col => col.id.ic_equals(sc.col_name),
|
||||
this.OfType<ICVOrderBookColumn>().ApplyToFirst(col => col.id.iequals(sc.col_name),
|
||||
col => {
|
||||
col.SortDirection = sc.is_ascending ? ListSortDirection.Ascending : ListSortDirection.Descending;
|
||||
_active_comparers.Add(col);
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace mbts {
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
public static bool ic_equals(this string str, string comparand) =>
|
||||
public static bool iequals(this string str, string comparand) =>
|
||||
string.Equals(str, comparand, StringComparison.CurrentCultureIgnoreCase);
|
||||
|
||||
public static T choose<T>(this Random r, IEnumerable<T> range) {
|
||||
|
||||
Reference in new issue
Block a user