Struct GuildAddress
- Namespace
- Nekoyume.TypedAddress
- Assembly
- Lib9c.dll
public readonly struct GuildAddress : IBencodable, IEquatable<GuildAddress>
- Implements
-
IBencodable
- Inherited Members
Constructors
GuildAddress(IValue)
public GuildAddress(IValue value)
Parameters
value
IValue
GuildAddress(Address)
public GuildAddress(Address address)
Parameters
address
Address
GuildAddress(byte[])
public GuildAddress(byte[] bytes)
Parameters
bytes
byte[]
GuildAddress(string)
public GuildAddress(string hex)
Parameters
hex
string
Properties
Bencoded
An Bencodex.Types.IValue representation of this object that can be decoded back to instantiate an equal object. The decoded object must be equal to the original in the sense that Equals(T) should be true.
public IValue Bencoded { get; }
Property Value
- IValue
Remarks
Note that the only requirement is that the produced Bencodex.Types.IValue can be decoded back to an equal object. This representation may not be canonical in the sense that additional junk data may be present in an Bencodex.Types.IValue that one may wish to decode and this may be discarded while decoding.
A specific implemnetation may decide to only allow the canonical representation to be decoded.
Methods
Equals(GuildAddress)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(GuildAddress other)
Parameters
other
GuildAddressAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(GuildAddress, GuildAddress)
public static bool operator ==(GuildAddress left, GuildAddress right)
Parameters
left
GuildAddressright
GuildAddress
Returns
implicit operator Address(GuildAddress)
public static implicit operator Address(GuildAddress guildAddress)
Parameters
guildAddress
GuildAddress
Returns
- Address
operator !=(GuildAddress, GuildAddress)
public static bool operator !=(GuildAddress left, GuildAddress right)
Parameters
left
GuildAddressright
GuildAddress