public DataEntity(object obj) : this() { Type type = obj.GetType(); _AddBlank(); foreach (var prop in type.GetProperties()) { Properties.Add( new DataProperty() { Name = prop.Name, Type = TypeMapper.Convert(prop.PropertyType), Value = prop.GetValue(obj) }); } }