10 references to Always
System.Text.Json (10)
System\Text\Json\Serialization\Attributes\JsonIgnoreAttribute.cs (2)
15
/// <remarks>The default value is <see cref="JsonIgnoreCondition.
Always
"/>.</remarks>
16
public JsonIgnoreCondition Condition { get; set; } = JsonIgnoreCondition.
Always
;
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
402
/// Thrown if this property is set to <see cref="JsonIgnoreCondition.
Always
"/>.
418
if (value == JsonIgnoreCondition.
Always
)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (3)
243
if (ignoreCondition == JsonIgnoreCondition.
Always
)
255
catch (InvalidOperationException) when (ignoreCondition == JsonIgnoreCondition.
Always
)
358
if (ignoreCondition != JsonIgnoreCondition.
Always
)
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
184
if (propertyInfo.IgnoreCondition != JsonIgnoreCondition.
Always
)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
906
internal bool IsIgnored => _ignoreCondition is JsonIgnoreCondition.
Always
&& Get is null && Set is null;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
377
case JsonIgnoreCondition.
Always
: