BitSharp.Network.Domain.VersionPayload.With C# (CSharp) Method

With() public method

public With ( UInt32 ProtocolVersion = null, System.UInt64 ServicesBitfield = null, DateTimeOffset Time = null, NetworkAddress RemoteAddress = null, NetworkAddress LocalAddress = null, System.UInt64 Nonce = null, string UserAgent = null, UInt32 StartBlockHeight = null, bool Relay = null ) : VersionPayload
ProtocolVersion System.UInt32
ServicesBitfield System.UInt64
Time DateTimeOffset
RemoteAddress NetworkAddress
LocalAddress NetworkAddress
Nonce System.UInt64
UserAgent string
StartBlockHeight System.UInt32
Relay bool
return VersionPayload
        public VersionPayload With(UInt32? ProtocolVersion = null, UInt64? ServicesBitfield = null, DateTimeOffset? Time = null, NetworkAddress RemoteAddress = null, NetworkAddress LocalAddress = null, UInt64? Nonce = null, string UserAgent = null, UInt32? StartBlockHeight = null, bool? Relay = null)
        {
            return new VersionPayload
            (
                ProtocolVersion ?? this.ProtocolVersion,
                ServicesBitfield ?? this.ServicesBitfield,
                Time ?? this.Time,
                RemoteAddress ?? this.RemoteAddress,
                LocalAddress ?? this.LocalAddress,
                Nonce ?? this.Nonce,
                UserAgent ?? this.UserAgent,
                StartBlockHeight ?? this.StartBlockHeight,
                Relay ?? this.Relay
            );
        }
    }