Example #1
0
 public void SetValue(InputDeviceTransportType value)
 {
     this.value = value;
     hasValue   = true;
 }
Example #2
0
 public InputDeviceTransportType GetValueOrDefault(InputDeviceTransportType defaultValue)
 {
     return(hasValue ? value : defaultValue);
 }
Example #3
0
 public OptionalInputDeviceTransportType(InputDeviceTransportType value)
 {
     this.value = value;
     hasValue   = true;
 }
Example #4
0
 public void Clear()
 {
     value    = 0;
     hasValue = false;
 }
Example #5
0
 public bool Equals(InputDeviceTransportType other)
 {
     return(hasValue &&
            value == other);
 }