DataSerializerGlobalAttribute Class
Namespace: Stride.Core.SerializationAssembly: Stride.Core.dll
Declares a serializer like DataSerializerAttribute or DataContractAttribute, but externally.
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = true)]
public class DataSerializerGlobalAttribute : Attribute
Name | Description | |
---|---|---|
Constructors | ||
DataSerializerGlobalAttribute(Type, Type, DataSerializerGenericMode, Boolean, Boolean) | Initializes a new instance of the DataSerializerGlobalAttribute class, either by its serializer type (it will act like DataSerializerAttribute and guess data type from the generic type of DataSerializer<T>) or the data type (it will act just like if DataContractAttribute was set on the data type). |
|
Properties | ||
Profile |
Constructors
DataSerializerGlobalAttribute(Type, Type, DataSerializerGenericMode, Boolean, Boolean)
Initializes a new instance of the DataSerializerGlobalAttribute class, either by its serializer type (it will act like DataSerializerAttribute and guess data type from the generic type of DataSerializer<T>) or the data type (it will act just like if DataContractAttribute was set on the data type).
public DataSerializerGlobalAttribute(Type serializerType, Type dataType = null, DataSerializerGenericMode mode = DataSerializerGenericMode.None, bool inherited = false, bool complexSerializer = false)
Parameters
Type | Name | Description |
---|---|---|
System.Type | serializerType | The serializer type. Can be null if |
System.Type | dataType | The data type. Can be null if |
DataSerializerGenericMode | mode | Defines how generic type are added to |
System.Boolean | inherited | Similar to Inherited |
System.Boolean | complexSerializer | True if it should use the auto-generated serializer. |
Properties
Profile
public string Profile { get; set; }
Property Value
Type | Description |
---|---|
System.String |