Opc.Ua.JsonDecoder.ReadBoolean C# (CSharp) Метод

ReadBoolean() публичный Метод

Reads a boolean from the stream.
public ReadBoolean ( string fieldName ) : bool
fieldName string
Результат bool
        public bool ReadBoolean(string fieldName)
        {
            object token = null;

            if (!ReadField(fieldName, out token))
            {
                return false;
            }

            var value = token as bool?;

            if (value == null)
            {
                return false;
            }

            return (bool)token;
        }