public override bool Equals(object obj) { if (obj == null) { return(false); } if (!(obj is RecordData)) { return(false); } RecordData otherRecord = (RecordData)obj; if (this.Count != otherRecord.Count) { return(false); } foreach (string key in this.Keys) { object testValue; if (!otherRecord.TryGetValue(key, out testValue) || !Equals(testValue, this[key])) { if (testValue.GetType() == typeof(string[]) && this[key].GetType() == typeof(string[])) { bool result = ArraysEqual(testValue as string[], this[key] as string[]); return(result); } else { return(false); } } } return(true); }
public Record(IEnumerable <FieldMetadata> structure, RecordData data) { Structure = new List <FieldMetadata>(structure); Data = new RecordData(data); }
public RecordData(RecordData dictionary) : base(dictionary) { }
public Record() { Structure = new List <FieldMetadata>(); Data = new RecordData(); }