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
typeGroup
DeviceTypeThe device type group.
typeIdentifier
byteThe 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
other
DeviceVariant
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()