IoIdAttribute

AttributeReferences
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)] public sealed class IoIdAttribute : Attribute
An attribute which associates an ID with a serialised object. This is usually required for the deserialisation of derived types, where it isn't clear which exact type is required to parse a specific portion of a file stream.

Constructors

IoIdAttribute

#
public IoIdAttribute(string id)
Create a new Identifier from a formatted GUID.
id (string)

Properties

Id

#
public Guid Id { get; }
Gets the identifier associated with this attribute.