ResolvedPort Methods
Struct Methods 5 members
Represents a resolved port with information about whether it was allocated or explicitly specified.
Creates a
ResolvedPort with an allocated port. public struct ResolvedPort{ public static ResolvedPort Allocated( int port) { // ... }}Parameters
port int The allocated port number. Returns
ResolvedPort A ResolvedPort with IsAllocated set to true. Creates a
ResolvedPort with an explicitly specified port. public struct ResolvedPort{ public static ResolvedPort Explicit( int port) { // ... }}Parameters
port int The explicitly specified port number. Returns
ResolvedPort A ResolvedPort with IsAllocated set to false. Creates a
ResolvedPort with an implicitly inferred port. public struct ResolvedPort{ public static ResolvedPort Implicit( int port) { // ... }}Parameters
port int The implicitly inferred port number. Returns
ResolvedPort A ResolvedPort with IsImplicit set to true. Creates a
ResolvedPort with no port (null). public struct ResolvedPort{ public static ResolvedPort None() { // ... }}Returns
ResolvedPort A ResolvedPort with Value set to null. Implicitly converts a
ResolvedPort to a nullable int. public struct ResolvedPort{ public static implicit operator int?( ResolvedPort resolvedPort) { // ... }}Parameters
resolvedPort ResolvedPort