|
using System;
using System.Collections.Generic;
using System.Text;
namespace DocumentBaseLibrary
{
[Serializable]
public class User
{
private static User _currentUser;
public static User CurrentUser
{
get
{
if (User._currentUser == null)
{
User._currentUser = new User();
}
return User._currentUser;
}
set {
User._currentUser = value;
}
}
string _userName;
public string UserName
{
get { return _userName; }
set { _userName = value; }
}
string _displayedName;
public string DisplayedName
{
get { return _displayedName; }
set { _displayedName = value; }
}
string _email;
public string Email
{
get { return _email; }
set { _email = value; }
}
bool isInGroup(string group)
{
throw new NotImplementedException();
}
public User()
{ }
public override string ToString()
{
return this.DisplayedName;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.