Esempio n. 1
0
        public void Add(VProperty property)
        {
            if (property == null)
                throw new ArgumentNullException(nameof(property));
            if (property.Value == null)
                throw new ArgumentNullException(nameof(property.Value));

            _children.Add(property);
        }
Esempio n. 2
0
        private VProperty ReadProperty(VdfReader reader)
        {
            VProperty result = new VProperty();
            result.Key = reader.Value;

            reader.ReadToken();
            if (reader.CurrentState == EVdfReaderState.Property)
                result.Value = new VValue(reader.Value);
            else
                result.Value = ReadObject(reader);

            return result;
        }
Esempio n. 3
0
 public bool TryGetValue(string key, out VProperty value)
 {
     value = _children.FirstOrDefault(x => x.Key == key);
     return value != null;
 }
Esempio n. 4
0
 public void CopyTo(VProperty[] array, int arrayIndex)
 {
     _children.CopyTo(array, arrayIndex);
 }