/// <summary> /// Constructs a copy of the specified <see cref="DynamoObject"/> /// object. /// </summary> /// <param name="source">Source object to copy</param> public DynamoObject(DynamoObject source) { this.DataType = source.DataType; this.values = new PropertyValueDictionary(); foreach (var curKey in source.values.Keys) { this.values.Add(curKey, source.values[curKey]); } }
/// <summary> /// Constructs a <see cref="DynamoObject"/> given an /// <see cref="ObjectType"/> metadata object. /// </summary> /// <param name="objType"> /// Object containing the metadata for this /// <see cref="DynamoObject"/> object. /// </param> public DynamoObject(ObjectType objType) { this.DataType = objType; this.values = new PropertyValueDictionary(); }
/// <summary> /// Default constructor. /// </summary> public DynamoObject() { this.DataType = Metadata.Reflection.ReflectionObjectType.Get(this.GetType()); this.values = new PropertyValueDictionary(); }