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