Skip to main content

ObjectType

Namespace: IotaSdk

Type of an IOTA object

public class ObjectType : IObjectType, System.IEquatable`1[[IotaSdk.ObjectType, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable

Inheritance Object → ObjectType
Implements IObjectType, IEquatable<ObjectType>, IDisposable
Attributes NullableContextAttribute, NullableAttribute

Constructors​

ObjectType(UInt64)​

public ObjectType(ulong pointer)

Parameters​

pointer UInt64

Methods​

Destroy()​

public void Destroy()

Dispose()​

public void Dispose()

AsOptStruct()​

public StructTag? AsOptStruct()

Returns​

StructTag?

AsStruct()​

public StructTag AsStruct()

Returns​

StructTag

IsPackage()​

public bool IsPackage()

Returns​

Boolean

IsStruct()​

public bool IsStruct()

Returns​

Boolean

ToDisplayString()​

Render this type as human-readable text.

Some types also print this through the binding's native string conversion; this method is the spelling every object type has.

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​

String

ToString()​

public override string ToString()

Returns​

String

Equals(ObjectType)​

public bool Equals(ObjectType? other)

Parameters​

other ObjectType?

Returns​

Boolean

Equals(Object)​

public override bool Equals(object? obj)

Parameters​

obj Object?

Returns​

Boolean

NewPackage()​

public static ObjectType NewPackage()

Returns​

ObjectType

NewStruct(StructTag)​

public static ObjectType NewStruct(StructTag structTag)

Parameters​

structTag StructTag

Returns​

ObjectType