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

ReadInt16() 공개 메소드

Reads a short from the stream.
public ReadInt16 ( string fieldName ) : short
fieldName string
리턴 short
        public short ReadInt16(string fieldName)
        {
            if (BeginField(fieldName, true))
            {
                string xml = ReadString();
                
                if (!String.IsNullOrEmpty(xml))
                {
                    short value = XmlConvert.ToInt16(xml);
                    EndField(fieldName);
                    return value;
                }
            }

            return 0;
        }