Table of Contents

Class DataContractMetadataTypeAttribute

Namespace
Stride.Core
Assembly
Stride.Core.dll

Specifies the metadata class to associate with a serializable class. The main usage of this class is to allow a sub-class to override property attributes such as DefaultValueAttribute.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public class DataContractMetadataTypeAttribute : Attribute
Inheritance
DataContractMetadataTypeAttribute
Inherited Members

Constructors

DataContractMetadataTypeAttribute(Type)

Initializes a new instance of the DataContractMetadataTypeAttribute class.

public DataContractMetadataTypeAttribute(Type metadataClassType)

Parameters

metadataClassType Type

The type alias name when serializing to a textual format.

Exceptions

ArgumentException

metadataClassType is null

Properties

MetadataClassType

Gets the metadata class that is associated with a serializable class.

public Type MetadataClassType { get; }

Property Value

Type