2 instantiations of ReferenceEqualsWrapper
System.Text.Json (2)
System\Text\Json\Serialization\IgnoreReferenceResolver.cs (2)
21=> _stackForCycleDetection?.Contains(new ReferenceEqualsWrapper(value)) ?? false; 25var wrappedValue = new ReferenceEqualsWrapper(value);
6 references to ReferenceEqualsWrapper
System.Text.Json (6)
System\Text\Json\Serialization\IgnoreReferenceResolver.cs (3)
12private Stack<ReferenceEqualsWrapper>? _stackForCycleDetection; 25var wrappedValue = new ReferenceEqualsWrapper(value); 27_stackForCycleDetection ??= new Stack<ReferenceEqualsWrapper>();
System\Text\Json\Serialization\ReferenceEqualsWrapper.cs (3)
9internal readonly struct ReferenceEqualsWrapper : IEquatable<ReferenceEqualsWrapper> 15public override bool Equals([NotNullWhen(true)] object? obj) => obj is ReferenceEqualsWrapper otherObj && Equals(otherObj); 16public bool Equals(ReferenceEqualsWrapper obj) => ReferenceEquals(_object, obj._object);