Mercurial > silverbladetech
view SilverlightValidation/SilverlightValidation.PL/Models/UserModel.cs @ 97:1adc1ae981ea
Tests added to SilverlightValidation.Tests
author | stevenhollidge <stevenhollidge@hotmail.com> |
---|---|
date | Sat, 05 May 2012 16:39:00 +0100 |
parents | 188f8b366e87 |
children | d0c2cac12376 |
line wrap: on
line source
using System; using System.ComponentModel; using SilverlightValidation.Interfaces; namespace SilverlightValidation.Models { public class UserModel : IUserModel, ICloneable<UserModel> { public string Username { get; set; } public string Email { get; set; } public string Password { get; set; } public DateTime? DateOfBirth { get; set; } public string Description { get; set; } public static UserModel Create() { return new UserModel() { Username = "", Email = "", Password = "", DateOfBirth = null, Description = "" }; } public UserModel Clone() { return (UserModel) this.MemberwiseClone(); } } }