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
REG_TEST
public static readonly Network REG_TEST
Field Value
SIG_NET
public static readonly Network SIG_NET
Field Value
TEST_NET
public static readonly Network TEST_NET
Field Value
Properties
ChainHash
public ChainHash ChainHash { get; }
Property Value
Name
public string Name { get; }
Property Value
Methods
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 ==(Network, Network)
public static bool operator ==(Network left, Network right)
Parameters
Returns
implicit operator Network(Network)
public static implicit operator Network(Network network)
Parameters
network
Network
Returns
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
implicit operator Network(string)
public static implicit operator Network(string value)
Parameters
value
string
Returns
operator !=(Network, Network)
public static bool operator !=(Network left, Network right)