TypeOrigin
Namespace: IotaSdk
Stores the origin of a data type where it first appeared in the version chain. A data type is identified by the name of the module and the name of the struct/enum in combination.
BCS
The BCS serialized form for this type is defined by the following ABNF:
type-origin = identifier identifier object-id
public record class TypeOrigin : System.IDisposable, System.IEquatable`1[[IotaSdk.TypeOrigin, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → TypeOrigin
Implements IDisposable, IEquatable<TypeOrigin>
Attributes NullableContextAttribute, NullableAttribute
Properties
ModuleName
The name of the module the data type resides in.
public Identifier ModuleName { get; init; }
Property Value
DatatypeName
The name of the data type. Either refers to an enum or a struct identifier.
public Identifier DatatypeName { get; init; }
Property Value
Package
ID of the package, where the given type first appeared.
public ObjectId Package { get; init; }
Property Value
Constructors
TypeOrigin(Identifier, Identifier, ObjectId)
Stores the origin of a data type where it first appeared in the version chain. A data type is identified by the name of the module and the name of the struct/enum in combination.
BCS
The BCS serialized form for this type is defined by the following ABNF:
type-origin = identifier identifier object-id
public TypeOrigin(Identifier ModuleName, Identifier DatatypeName, ObjectId Package)
Parameters
ModuleName Identifier
The name of the module the data type resides in.
DatatypeName Identifier
The name of the data type. Either refers to an enum or a struct
identifier.
Package ObjectId
ID of the package, where the given type first appeared.
Methods
Dispose()
public void Dispose()