Class IOModeExtensions
Inheritance
System.Object
IOModeExtensions
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.IO
Assembly: XBeeLibrary.Core.dll
Syntax
public static class IOModeExtensions
Methods
GetId(IOMode)
Gets the IO mode ID.
Declaration
public static int GetId(this IOMode source)
Parameters
Type | Name | Description |
---|---|---|
IOMode | source |
Returns
Type | Description |
---|---|
System.Int32 | IO mode ID. |
GetIOMode(IOMode, Int32)
Gets the IOMode corresponding to the provided mode Id.
Declaration
public static IOMode GetIOMode(this IOMode source, int modeID)
Parameters
Type | Name | Description |
---|---|---|
IOMode | source | |
System.Int32 | modeID | The ID of the IOMode to retrieve. |
Returns
Type | Description |
---|---|
IOMode | The IOMode corresponding to the provided mode ID. |
GetIOMode(IOMode, Int32, IOLine)
Gets the IOMode corresponding to the provided mode Id and IO line.
Declaration
public static IOMode GetIOMode(this IOMode source, int modeID, IOLine ioline)
Parameters
Type | Name | Description |
---|---|---|
IOMode | source | |
System.Int32 | modeID | The ID of the IOMode to retrieve. |
IOLine | ioline | The IO line to retrieve its IOMode |
Returns
Type | Description |
---|---|
IOMode | The IOMode corresponding to the provided mode ID and IO line. |
GetName(IOMode)
Gets the IO mode name.
Declaration
public static string GetName(this IOMode source)
Parameters
Type | Name | Description |
---|---|---|
IOMode | source |
Returns
Type | Description |
---|---|
System.String | IO mode name. |