Struct PledgeAddress
- Namespace
- Nekoyume.TypedAddress
- Assembly
- Lib9c.dll
public readonly struct PledgeAddress : IBencodable
- Implements
-
IBencodable
- Inherited Members
Constructors
PledgeAddress(IValue)
public PledgeAddress(IValue value)
Parameters
value
IValue
PledgeAddress(Address)
public PledgeAddress(Address address)
Parameters
address
Address
PledgeAddress(byte[])
public PledgeAddress(byte[] bytes)
Parameters
bytes
byte[]
PledgeAddress(string)
public PledgeAddress(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(PledgeAddress)
public bool Equals(PledgeAddress other)
Parameters
other
PledgeAddress
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 ==(PledgeAddress, PledgeAddress)
public static bool operator ==(PledgeAddress left, PledgeAddress right)
Parameters
left
PledgeAddressright
PledgeAddress
Returns
implicit operator Address(PledgeAddress)
public static implicit operator Address(PledgeAddress agentAddress)
Parameters
agentAddress
PledgeAddress
Returns
- Address
operator !=(PledgeAddress, PledgeAddress)
public static bool operator !=(PledgeAddress left, PledgeAddress right)
Parameters
left
PledgeAddressright
PledgeAddress