Class YamlTypeTagAttribute
Registers a type and a tag name that will be emitted in a YAML document when serializing, and will allow for unambiguous parsing when deserializing.
Inherited Members
Namespace: Acoustics.Shared
Assembly: Acoustics.Shared.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class YamlTypeTagAttribute : Attribute
Constructors
| Improve this Doc View SourceYamlTypeTagAttribute(Type, String)
Initializes a new instance of the YamlTypeTagAttribute class. Registers a type and a tag name that will be emitted in a YAML document when serializing, and will allow for unambiguous parsing when deserializing.
Declaration
public YamlTypeTagAttribute(Type type, string name = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type to register. |
| String | name | The tag name to use. |
Properties
| Improve this Doc View SourceName
Gets the name associated with this tag mapping.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
Type
Gets the type associated with this tag mapping.
Declaration
public Type Type { get; }
Property Value
| Type | Description |
|---|---|
| Type |