Opc.Ua.JsonEncoder.WriteEncodeable C# (CSharp) Method

WriteEncodeable() public method

Writes an encodeable object to the stream.
public WriteEncodeable ( string fieldName, IEncodeable value, System systemType ) : void
fieldName string
value IEncodeable
systemType System
return void
        public void WriteEncodeable(string fieldName, IEncodeable value, System.Type systemType)
        {
            if (value == null)
            {
                WriteSimpleField(fieldName, null, false);
                return;
            }

            PushStructure(fieldName);

            if (value != null)
            {
                value.Encode(this);
            }

            PopStructure();
        }