Class HardwareVersionEnumExtensions
Inheritance
System.Object
HardwareVersionEnumExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: XBeeLibrary.Core.Models
Assembly: XBeeLibrary.Core.dll
Syntax
public static class HardwareVersionEnumExtensions
Methods
Get(HardwareVersionEnum, Int32)
Gets the HardwareVersionEnum associated to the given numeric value.
Declaration
public static HardwareVersionEnum Get(this HardwareVersionEnum source, int value)
Parameters
Type | Name | Description |
---|---|---|
HardwareVersionEnum | source | |
System.Int32 | value | Numeric value of the HardwareVersionEnum to retrieve. |
Returns
Type | Description |
---|---|
HardwareVersionEnum | The HardwareVersionEnum associated to the given numeric value. |
GetDescription(HardwareVersionEnum)
Gets the hardware version description.
Declaration
public static string GetDescription(this HardwareVersionEnum source)
Parameters
Type | Name | Description |
---|---|---|
HardwareVersionEnum | source |
Returns
Type | Description |
---|---|
System.String | The hardware version description. |
GetValue(HardwareVersionEnum)
Gets the Hardware version numeric value.
Declaration
public static int GetValue(this HardwareVersionEnum source)
Parameters
Type | Name | Description |
---|---|---|
HardwareVersionEnum | source |
Returns
Type | Description |
---|---|
System.Int32 | The hardware version numeric value. |
ToDisplayString(HardwareVersionEnum)
Returns the HardwareVersionEnum in string format.
Declaration
public static string ToDisplayString(this HardwareVersionEnum source)
Parameters
Type | Name | Description |
---|---|---|
HardwareVersionEnum | source |
Returns
Type | Description |
---|---|
System.String | The HardwareVersionEnum in string format. |