title: Need to read Struct variable fom OPC UA Server with OPC UA .NET from opcfoundation
body: <p>I'm new to OPC UA.
  I'm using</p>
  <ul>
  <li>OPCFoundation.NetStandard.Opc.Ua.Client (1.4.368.58)</li>
  <li>OPC Server opc.tcp://opcuaserver.com:48010</li>
  <li>Node to read : ns=2;s=Demo.WorkOrder.WorkOrderVariable</li>
  </ul>
  <p>This structure contains simple types (Guid, Int64, String, etc...) and a custom types &quot;WorkOrderStatusType&quot;</p>
  <p>I can read values with : session.ReadValues(...) and process with :</p>
  <pre><code>    var encodeable = val as ExtensionObject;
      var decoder = new BinaryDecoder(encodeable.Body as byte[], ServiceMessageContext.GlobalContext);
      decoder.ReadGuid(&quot;ID&quot;);
  </code></pre>
  <p>It works for simple types but not for custom types.
  I would like to know how to parse sub custom types.</p>
  <p>I've searched a lot and can't find anything specific to understand.</p>
  <p>I would like to create an object myself and have the OPC library automatically map my object, but I don't know how.</p>
  <p>Could you help me ?</p>
  <p>Thank you.</p>