public static void ToValueTcpType(TcpTypeBool tcpType, uint value) { if (tcpType == null) { throw new ArgumentNullException(nameof(tcpType)); } tcpType.Value = Convert.ToBoolean(value); }
public static int ToInt32(TcpTypeBool value) { return(value == null ? _DefaultInt32Value : Convert.ToInt32(value.Value)); }
public static ushort ToUInt16(TcpTypeBool value) { return(value == null ? _DefaultUInt16Value : Convert.ToUInt16(value.Value)); }
public static byte ToByte(TcpTypeBool value) { return(value == null ? _DefaultByteValue : Convert.ToByte(value.Value)); }
public static bool ToBoolean(TcpTypeBool value) { return(value == null ? _DefaultBooleanValue : Convert.ToBoolean(value.Value)); }