Table of Contents

Struct Network

Namespace
NLightning.Common.Types
Assembly
NLightning.Common.dll
public readonly struct Network
Inherited Members

Constructors

Network(string)

public Network(string name)

Parameters

name string

Fields

MAIN_NET

public static readonly Network MAIN_NET

Field Value

Network

REG_TEST

public static readonly Network REG_TEST

Field Value

Network

SIG_NET

public static readonly Network SIG_NET

Field Value

Network

TEST_NET

public static readonly Network TEST_NET

Field Value

Network

Properties

ChainHash

public ChainHash ChainHash { get; }

Property Value

ChainHash

Name

public string Name { get; }

Property Value

string

Methods

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