comparison SilverlightGlimpse/SilverlightValidation/Models/UserModel.cs @ 69:a0bcd783e612

Latest work
author Steven Hollidge <stevenhollidge@hotmail.com>
date Mon, 23 Apr 2012 11:06:10 +0100
parents
children dd6bcd2535b6
comparison
equal deleted inserted replaced
68:81337ebf885a 69:a0bcd783e612
1 using System;
2 using System.ComponentModel;
3 using SilverlightValidation.Interfaces;
4
5 namespace SilverlightValidation.Models
6 {
7 public class UserModel : IUserModel, ICloneable<UserModel>
8 {
9 public string Username { get; set; }
10 public string Email { get; set; }
11 public string Password { get; set; }
12 public DateTime? DateOfBirth { get; set; }
13 public string Description { get; set; }
14
15 public static UserModel Create()
16 {
17 return new UserModel() { Username = "", Email = "", Password = "", DateOfBirth = null, Description = "" };
18 }
19
20 public UserModel Clone()
21 {
22 return (UserModel) this.MemberwiseClone();
23 }
24 }
25 }