Table of Contents

Class DataMemberAttribute

Namespace
Stride.Core
Assembly
Stride.Core.dll

Specify the way to store a property or field of some class or structure.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class DataMemberAttribute : Attribute
Inheritance
DataMemberAttribute
Inherited Members

Constructors

DataMemberAttribute()

Initializes a new instance of the DataMemberAttribute class.

public DataMemberAttribute()

DataMemberAttribute(DataMemberMode)

Specify the way to store a property or field of some class or structure.

public DataMemberAttribute(DataMemberMode mode)

Parameters

mode DataMemberMode

The serialize method.

DataMemberAttribute(int)

Initializes a new instance of the DataMemberAttribute class.

public DataMemberAttribute(int order)

Parameters

order int

The order.

DataMemberAttribute(int, DataMemberMode)

Initializes a new instance of the DataMemberAttribute class.

public DataMemberAttribute(int order, DataMemberMode mode)

Parameters

order int

The order.

mode DataMemberMode

The mode.

DataMemberAttribute(int, string)

Initializes a new instance of the DataMemberAttribute class.

public DataMemberAttribute(int order, string name)

Parameters

order int

The order.

name string

The name.

DataMemberAttribute(int, string, DataMemberMode)

Initializes a new instance of the DataMemberAttribute class.

public DataMemberAttribute(int order, string name, DataMemberMode mode)

Parameters

order int

The order.

name string

The name.

mode DataMemberMode

The mode.

DataMemberAttribute(string)

Initializes a new instance of the DataMemberAttribute class.

public DataMemberAttribute(string name)

Parameters

name string

The name.

DataMemberAttribute(string, DataMemberMode)

Specify the way to store a property or field of some class or structure.

public DataMemberAttribute(string name, DataMemberMode mode)

Parameters

name string

The name.

mode DataMemberMode

The serialize method.

Fields

DefaultMask

public const uint DefaultMask = 1

Field Value

uint

IgnoreMask

public const uint IgnoreMask = 4026531840

Field Value

uint

Properties

Mask

Gets or sets the mask to filter out members.

public uint Mask { get; set; }

Property Value

uint

The mask.

Mode

Gets the serialize method1.

public DataMemberMode Mode { get; }

Property Value

DataMemberMode

The serialize method1.

Name

Gets the name.

public string Name { get; }

Property Value

string

The name.

Order

Gets or sets the order. Default is -1 (default to alphabetical)

public int? Order { get; set; }

Property Value

int?

The order.