Table of Contents

Struct Network

Namespace
NLightning.Domain.ValueObjects
Assembly
NLightning.Domain.dll
public readonly struct Network : IEquatable<Network>, IEquatable<Network>
Implements
IEquatable<Network>
Inherited Members

Constructors

Network(string)

public Network(string name)

Parameters

name string

Fields

MAINNET

public static readonly Network MAINNET

Field Value

Network

REGTEST

public static readonly Network REGTEST

Field Value

Network

SIGNET

public static readonly Network SIGNET

Field Value

Network

TESTNET

public static readonly Network TESTNET

Field Value

Network

Properties

ChainHash

public ChainHash ChainHash { get; }

Property Value

ChainHash

Name

public string Name { get; }

Property Value

string

Methods

Equals(Network?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Network? other)

Parameters

other Network

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(Network)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Network other)

Parameters

other Network

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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

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

Parameters

left Network
right Network

Returns

bool

implicit operator Network(Network)

public static implicit operator Network(Network network)

Parameters

network Network

Returns

Network

implicit operator Network(Network)

public static implicit operator Network(Network network)

Parameters

network Network

Returns

Network

implicit operator string(Network)

public static implicit operator string(Network network)

Parameters

network Network

Returns

string

implicit operator Network(string)

public static implicit operator Network(string value)

Parameters

value string

Returns

Network

operator !=(Network, Network)

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

Parameters

left Network
right Network

Returns

bool