コード例 #1
0
 public void SetValue(InputDeviceDriverType value)
 {
     this.value = value;
     hasValue   = true;
 }
コード例 #2
0
 public InputDeviceDriverType GetValueOrDefault(InputDeviceDriverType defaultValue)
 {
     return(hasValue ? value : defaultValue);
 }
コード例 #3
0
 public OptionalInputDeviceDriverType(InputDeviceDriverType value)
 {
     this.value = value;
     hasValue   = true;
 }
コード例 #4
0
 public void Clear()
 {
     value    = 0;
     hasValue = false;
 }
コード例 #5
0
 public bool Equals(InputDeviceDriverType other)
 {
     return(hasValue &&
            value == other);
 }