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