Table of Contents

Struct AgentAddress

Namespace
Nekoyume.TypedAddress
Assembly
Lib9c.dll
public readonly struct AgentAddress : IBencodable
Implements
IBencodable
Inherited Members
Extension Methods

Constructors

AgentAddress(IValue)

public AgentAddress(IValue value)

Parameters

value IValue

AgentAddress(Address)

public AgentAddress(Address address)

Parameters

address Address

AgentAddress(byte[])

public AgentAddress(byte[] bytes)

Parameters

bytes byte[]

AgentAddress(string)

public AgentAddress(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(AgentAddress)

public bool Equals(AgentAddress other)

Parameters

other AgentAddress

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The 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 ==(AgentAddress, AgentAddress)

public static bool operator ==(AgentAddress left, AgentAddress right)

Parameters

left AgentAddress
right AgentAddress

Returns

bool

implicit operator Address(AgentAddress)

public static implicit operator Address(AgentAddress agentAddress)

Parameters

agentAddress AgentAddress

Returns

Address

operator !=(AgentAddress, AgentAddress)

public static bool operator !=(AgentAddress left, AgentAddress right)

Parameters

left AgentAddress
right AgentAddress

Returns

bool