Opc.Ua.XmlDecoder.ReadSByte C# (CSharp) 메소드

ReadSByte() 공개 메소드

Reads a sbyte from the stream.
public ReadSByte ( string fieldName ) : sbyte
fieldName string
리턴 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;
        }