Edit

Share via


OmitDefaultMemberValuesAttribute Class

Definition

When applied to a type, indicates that generated serializers for the type should avoid serializing members if the member value is equal to its default value.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)]
public sealed class OmitDefaultMemberValuesAttribute : Attribute
Inheritance
OmitDefaultMemberValuesAttribute
Attributes

Constructors

Applies to

Product Versions
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0

See also