Ejemplo 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);
        }
Ejemplo 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;
        }
Ejemplo n.º 3
0
 public bool TryGetValue(string key, out VProperty value)
 {
     value = _children.FirstOrDefault(x => x.Key == key);
     return value != null;
 }
Ejemplo n.º 4
0
 public void CopyTo(VProperty[] array, int arrayIndex)
 {
     _children.CopyTo(array, arrayIndex);
 }