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