Name
Namespace: IotaSdk
public class Name : IName, System.IEquatable`1[[IotaSdk.Name, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.IDisposable
Inheritance Object → Name
Implements IName, IEquatable<Name>, IDisposable
Attributes NullableContextAttribute, NullableAttribute
Constructors
Name(UInt64)
public Name(ulong pointer)
Parameters
pointer UInt64
Methods
Destroy()
public void Destroy()
Dispose()
public void Dispose()
Format(NameFormat)
Formats a name into a string based on the available output formats.
The default separator is .
public string Format(NameFormat format)
Parameters
format NameFormat
Returns
IsSln()
Returns whether this name is a second-level name (Ex. test.iota)
public bool IsSln()
Returns
IsSubname()
Returns whether this name is a subname (Ex. sub.test.iota)
public bool IsSubname()
Returns
Label(UInt32)
Get the label at the given index
public string? Label(uint index)
Parameters
index UInt32
Returns
Labels()
Get all of the labels. NOTE: These are in reverse order starting with the top-level name and proceeding to subnames.
public String[] Labels()
Returns
NumLabels()
Returns the number of labels including TLN.
public uint NumLabels()
Returns
Parent()
parents; second-level names return None.
public Name? Parent()
Returns
Name?
ToString()
public override string ToString()
Returns
Equals(Name)
public bool Equals(Name? other)
Parameters
other Name?
Returns
Equals(Object)
public override bool Equals(object? obj)
Parameters
obj Object?
Returns
GetHashCode()
public override int GetHashCode()
Returns
FromStr(String)
public static Name FromStr(string s)
Parameters
s String