Class DeviceVariant
An alternative form factor or hardware revision a device can have, such as mono or stereo.
public class DeviceVariant : IEquatable<DeviceVariant>
- Inheritance
-
DeviceVariant
- Implements
- Inherited Members
Constructors
DeviceVariant(DeviceType, byte)
Initializes a new instance of the DeviceVariant class.
public DeviceVariant(DeviceType typeGroup, byte typeIdentifier)
Parameters
typeGroupDeviceTypeThe device type group.
typeIdentifierbyteThe variant type identifier.
Properties
Any
public static DeviceVariant Any { get; }
Property Value
- DeviceVariant
A generic device variant.
HexForm
public string HexForm { get; }
Property Value
- string
The hexadecimal notation of this device variant.
Id
public byte Id { get; }
Property Value
- byte
The variant type identifier.
Type
The device type, e.g. headset, dongle, etc.
public DeviceType Type { get; }
Property Value
Methods
Equals(DeviceVariant?)
public bool Equals(DeviceVariant? other)
Parameters
otherDeviceVariant
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()