Home
last modified time | relevance | path

Searched refs:EqualityComparer (Results 1 – 10 of 10) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf/Collections/
DProtobufEqualityComparers.cs50 public static EqualityComparer<T> GetEqualityComparer<T>() in GetEqualityComparer()
52 … return typeof(T) == typeof(double) ? (EqualityComparer<T>) (object) BitwiseDoubleEqualityComparer in GetEqualityComparer()
53 … : typeof(T) == typeof(float) ? (EqualityComparer<T>) (object) BitwiseSingleEqualityComparer in GetEqualityComparer()
54 …: typeof(T) == typeof(double?) ? (EqualityComparer<T>) (object) BitwiseNullableDoubleEqualityCompa… in GetEqualityComparer()
55 …: typeof(T) == typeof(float?) ? (EqualityComparer<T>) (object) BitwiseNullableSingleEqualityCompar… in GetEqualityComparer()
56 : EqualityComparer<T>.Default; in GetEqualityComparer()
63 …public static EqualityComparer<double> BitwiseDoubleEqualityComparer { get; } = new BitwiseDoubleE…
69 …public static EqualityComparer<float> BitwiseSingleEqualityComparer { get; } = new BitwiseSingleEq…
75 …public static EqualityComparer<double?> BitwiseNullableDoubleEqualityComparer { get; } = new Bitwi…
81 …public static EqualityComparer<float?> BitwiseNullableSingleEqualityComparer { get; } = new Bitwis…
[all …]
DRepeatedField.cs56 …private static readonly EqualityComparer<T> EqualityComparer = ProtobufEqualityComparers.GetEquali… field in Google.Protobuf.Collections.RepeatedField
541 EqualityComparer<T> comparer = EqualityComparer; in Equals()
561 EqualityComparer<T> comparer = EqualityComparer; in IndexOf()
DLists.cs61 IEqualityComparer<T> comparer = EqualityComparer<T>.Default; in Equals()
DMapField.cs76 …private static readonly EqualityComparer<TValue> ValueEqualityComparer = ProtobufEqualityComparers…
77 …private static readonly EqualityComparer<TKey> KeyEqualityComparer = ProtobufEqualityComparers.Get…
325 EqualityComparer<TValue>.Default.Equals(item.Value, node.Value.Value)) in Remove()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DProtobufEqualityComparersTest.cs60 Assert.AreSame(EqualityComparer<object>.Default, GetEqualityComparer<object>()); in GetEqualityComparer_Default()
61 Assert.AreSame(EqualityComparer<string>.Default, GetEqualityComparer<string>()); in GetEqualityComparer_Default()
62 Assert.AreSame(EqualityComparer<int>.Default, GetEqualityComparer<int>()); in GetEqualityComparer_Default()
63 Assert.AreSame(EqualityComparer<int?>.Default, GetEqualityComparer<int?>()); in GetEqualityComparer_Default()
100 …private static void ValidateEqualityComparer<T>(EqualityComparer<T> comparer, IEnumerable<T> value… in ValidateEqualityComparer()
/third_party/grpc/src/csharp/Grpc.Core/
DChannelOptions.cs152 hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(name); in GetHashCode()
154 … hashCode = hashCode * -1521134295 + EqualityComparer<string>.Default.GetHashCode(stringValue); in GetHashCode()
163 return EqualityComparer<ChannelOption>.Default.Equals(option1, option2); in operator ==()
/third_party/typescript/src/compiler/
DcorePublic.ts103 export type EqualityComparer<T> = (a: T, b: T) => boolean; alias
Dcore.ts271 …ins<T>(array: readonly T[] | undefined, value: T, equalityComparer: EqualityComparer<T> = equateVa…
282 … arraysEqual<T>(a: readonly T[], b: readonly T[], equalityComparer: EqualityComparer<T> = equateVa…
748 …function deduplicateRelational<T>(array: readonly T[], equalityComparer: EqualityComparer<T>, comp…
770 function deduplicateEquality<T>(array: readonly T[], equalityComparer: EqualityComparer<T>) {
784 …export function deduplicate<T>(array: readonly T[], equalityComparer: EqualityComparer<T>, compare…
794 …function deduplicateSorted<T>(array: SortedReadonlyArray<T>, comparer: EqualityComparer<T> | Compa…
834 …e<T>(array: readonly T[], comparer: Comparer<T>, equalityComparer?: EqualityComparer<T>): SortedRe…
835 …<T>(array: readonly T[], comparer?: Comparer<T>, equalityComparer?: EqualityComparer<T>): SortedRe…
1024 …export function pushIfUnique<T>(array: T[], toAdd: T, equalityComparer?: EqualityComparer<T>): boo…
1037 … appendIfUnique<T>(array: T[] | undefined, toAdd: T, equalityComparer?: EqualityComparer<T>): T[] {
[all …]
Dutilities.ts7240 …export function arrayIsHomogeneous<T>(array: readonly T[], comparer: EqualityComparer<T> = equateV…
/third_party/protobuf/csharp/src/Google.Protobuf/
DFieldCodec.cs653 …private static readonly EqualityComparer<T> EqualityComparer = ProtobufEqualityComparers.GetEquali…
879 private bool IsDefault(T value) => EqualityComparer.Equals(value, DefaultValue);