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 of this type is specified in
bcs-schema.abnf.
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 of this type is specified in
bcs-schema.abnf.
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()
ToBcs()
Convert this type to BCS encoded bytes.
public Byte[] ToBcs()
Returns
Exceptions
ToDisplayString()
Render this type as human-readable text.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
public string ToDisplayString()
Returns
ToJson()
Convert this type to a JSON encoded string.
public string ToJson()