mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2026-02-26 09:38:26 +08:00
21 lines
437 B
C#
21 lines
437 B
C#
namespace S7.Net.Types
|
|
{
|
|
public static class Byte
|
|
{
|
|
// publics
|
|
#region ToByteArray
|
|
public static byte[] ToByteArray(byte value)
|
|
{
|
|
byte[] bytes = new byte[] { value};
|
|
return bytes;
|
|
}
|
|
#endregion
|
|
#region FromByteArray
|
|
public static byte FromByteArray(byte[] bytes)
|
|
{
|
|
return bytes[0];
|
|
}
|
|
#endregion
|
|
}
|
|
}
|