コード例 #1
0
        /// <inheritdoc />
        public bool OnValue(ValueReflection reflection, out object newValue)
        {
            if (!Serialization.TryGetValue(Node, reflection.Name, out newValue, reflection.ValueType))
            {
                return(false);
            }

            FARLogger.DebugFormat("Parsed {0}.{1} = {2}", Node.name, reflection.Name, newValue);
            return(true);
        }
コード例 #2
0
        /// <inheritdoc />
        public bool OnValue(object value, ValueReflection reflection, out object newValue)
        {
            newValue = default;
            if (value != null)
            {
                Serialization.AddValue(Node, reflection.Name, value, reflection.ValueType, IsPatch);
            }

            return(false);
        }