Struct NpgsqlCidr
- Namespace
- NpgsqlTypes
- Assembly
- Npgsql.dll
Represents a PostgreSQL cidr type.
public readonly record struct NpgsqlCidr : IEquatable<NpgsqlCidr>
- Implements
- Inherited Members
Remarks
Constructors
NpgsqlCidr(IPAddress, byte)
public NpgsqlCidr(IPAddress address, byte netmask)
Parameters
NpgsqlCidr(string)
public NpgsqlCidr(string addr)
Parameters
addr
string
Properties
Address
public IPAddress Address { get; }
Property Value
Netmask
public byte Netmask { get; }
Property Value
Methods
Deconstruct(out IPAddress, out byte)
public void Deconstruct(out IPAddress address, out byte netmask)
Parameters
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
explicit operator IPAddress(NpgsqlCidr)
public static explicit operator IPAddress(NpgsqlCidr cidr)
Parameters
cidr
NpgsqlCidr
Returns
implicit operator NpgsqlInet(NpgsqlCidr)
public static implicit operator NpgsqlInet(NpgsqlCidr cidr)
Parameters
cidr
NpgsqlCidr