I'm trying to find a way to parse the binary structured data from an ExtensionObject.
I know, how to get the correct DataTypeNode of the received data. But didn't find any way on how to use it to decode the binary data.
Hopefully, anyone can give me a hint how to do this with the .NET SDK.
public ExtensionObject ReadExtensionObject(string fieldName)
Thanks for your reply!
But how do I use the Binary decoder? And whats the fieldName?
Is there a possibility to the the DataTypeNode for the decoder?
The following code does not work...
DataValue Data = GetDataFromServer(...);
var ExtData = GenericData.Value as ExtensionObject;
using var Decoder = new BinaryDecoder(ExtData .Body as byte, ServiceMessageContext.GlobalContext);
var Result = Decoder.ReadExtensionObject(null);