public static IImmutableSession WithSoftStringComparer(this IImmutableSession context)
 {
     return(context.WithComparer(GetComparerNameFromCaller(), EqualityComparerFactory <object> .Create
                                 (
                                     equals: (left, right) => SoftString.Comparer.Equals((string)left, (string)right),
                                     getHashCode: (obj) => SoftString.Comparer.GetHashCode((string)obj)
                                 )));
 }
 public static IImmutableSession WithRegexComparer(this IImmutableSession context)
 {
     return(context.WithComparer(GetComparerNameFromCaller(), EqualityComparerFactory <object> .Create
                                 (
                                     equals: (left, right) => Regex.IsMatch((string)right, (string)left, RegexOptions.None),
                                     getHashCode: (obj) => 0
                                 )));
 }
 public static IImmutableSession WithDefaultComparer(this IImmutableSession context)
 {
     return(context.WithComparer(GetComparerNameFromCaller(), EqualityComparer <object> .Default));
 }