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.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)]
public sealed class OmitDefaultMemberValuesAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct)>]
type OmitDefaultMemberValuesAttribute = class
    inherit Attribute
Public NotInheritable Class OmitDefaultMemberValuesAttribute
Inherits Attribute
Inheritance
OmitDefaultMemberValuesAttribute
Attributes

Constructors

OmitDefaultMemberValuesAttribute()

Applies to

See also