Class Extensions
- Namespace
- TwinSharp
- Assembly
- TwinSharp.dll
Contains extension methods for various classes.
public static class Extensions
- Inheritance
-
Extensions
- Inherited Members
Methods
ReadDateTime(AdsClient, uint)
Reads a uint from the specified index group and offset and converts it to a DateTime object.
public static DateTime ReadDateTime(this AdsClient client, uint handle)
Parameters
client
AdsClienthandle
uint
Returns
ReadString(AdsClient, uint, uint, int)
Reads a string from the specified index group and offset using the UTF8 encoding.
public static string ReadString(this AdsClient client, uint indexGroup, uint indexOffset, int len)
Parameters
Returns
ToUint(byte[])
Converts a byte array to a uint.
public static uint ToUint(this byte[] buffer)
Parameters
buffer
byte[]