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