Inheritance: IPrincipal, IIdentity, IComparable
コード例 #1
0
		public void AddUser(User user)
		{
			if (null == user)
			{
				throw new ArgumentNullException("user");
			}
			
			if (_users.ContainsKey(user.Email))
			{
				throw new ApplicationException(string.Format("The user {0} is already registered!", user.Email));			
			}
			
			_users[user.Email] = user;
		}