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
valueIValue
PledgeAddress(Address)
public PledgeAddress(Address address)
Parameters
addressAddress
PledgeAddress(byte[])
public PledgeAddress(byte[] bytes)
Parameters
bytesbyte[]
PledgeAddress(string)
public PledgeAddress(string hex)
Parameters
hexstring
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
otherPledgeAddress
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
leftPledgeAddressrightPledgeAddress
Returns
implicit operator Address(PledgeAddress)
public static implicit operator Address(PledgeAddress agentAddress)
Parameters
agentAddressPledgeAddress
Returns
- Address
operator !=(PledgeAddress, PledgeAddress)
public static bool operator !=(PledgeAddress left, PledgeAddress right)
Parameters
leftPledgeAddressrightPledgeAddress