6 writes to _reference
Microsoft.Analyzers.Local (6)
ApiLifecycle\Json\JsonValue.cs (6)
43
_reference
= null;
60
_reference
= null;
78
_reference
= value;
95
_reference
= value;
112
_reference
= value;
131
_reference
= reference;
21 references to _reference
Microsoft.Analyzers.Local (21)
ApiLifecycle\Json\JsonValue.cs (21)
198
JsonValueType.String => !string.IsNullOrEmpty((string?)
_reference
),
235
JsonValueType.String => double.TryParse((string?)
_reference
, NumberStyles.Float, CultureInfo.InvariantCulture, out var number)
251
JsonValueType.String => (string?)
_reference
,
260
public JsonObject? AsJsonObject => IsJsonObject ? (JsonObject?)
_reference
: null;
266
public JsonArray? AsJsonArray => IsJsonArray ? (JsonArray?)
_reference
: null;
273
public DateTime? AsDateTime => IsString && DateTime.TryParse((string?)
_reference
?? string.Empty, out var value)
284
JsonValueType.String or JsonValueType.Object or JsonValueType.Array =>
_reference
,
301
return ((JsonObject)
_reference
!)[key];
313
((JsonObject)
_reference
!)[key] = value;
335
return ((JsonArray)
_reference
!)[index];
347
((JsonArray)
_reference
!)[index] = value;
491
? jsonValue.
_reference
as string
501
return jsonValue.IsJsonObject || jsonValue.IsNull ? jsonValue.
_reference
as JsonObject : null;
510
return jsonValue.IsJsonArray || jsonValue.IsNull ? jsonValue.
_reference
as JsonArray : null;
542
&& Equals(a.
_reference
, b.
_reference
);
584
var r =
_reference
!= null ? EqualityComparer<object>.Default.GetHashCode(
_reference
) : 1;
607
? (JsonObject?)_jsonValue.
_reference
612
? (JsonArray?)_jsonValue.
_reference
619
? _jsonValue.
_reference