Opc.Ua.XmlDecoder.ReadSByte C# (CSharp) Method

ReadSByte() public method

Reads a sbyte from the stream.
public ReadSByte ( string fieldName ) : sbyte
fieldName string
return sbyte
        public sbyte ReadSByte(string fieldName)
        {
            if (BeginField(fieldName, true))
            {
                string xml = ReadString();

                if (!String.IsNullOrEmpty(xml))
                {
                    sbyte value = XmlConvert.ToSByte(xml);
                    EndField(fieldName);
                    return value;
                }
            }

            return 0;
        }