diff --git a/sharkbite.thresher/UserInfo.cs b/sharkbite.thresher/UserInfo.cs index e13e3956d..2e8d9cfe5 100644 --- a/sharkbite.thresher/UserInfo.cs +++ b/sharkbite.thresher/UserInfo.cs @@ -36,74 +36,32 @@ namespace Sharkbite.Irc private readonly string hostName; private static readonly UserInfo EmptyInstance = new UserInfo(); - /// - /// Creat an empty instance - /// - private UserInfo() - { - nickName = ""; - userName = ""; - hostName = ""; + /// Creates an empty instance + private UserInfo() { + nickName = ""; userName = ""; hostName = ""; } - /// - /// Create a new UserInfo and set all its values. - /// - public UserInfo(string nick, string name, string host) - { - nickName = nick; - userName = name; - hostName = host; + + /// Create a new UserInfo and set all its values. + public UserInfo(string nick, string name, string host) { + nickName = nick; userName = name; hostName = host; } - /// - /// An IRC user's nick name. - /// - public string Nick - { - get - { - return nickName; - } - } - /// - /// An IRC user's system username. - /// - public string User - { - get - { - return userName; - } - } - /// - /// The hostname of the IRC user's machine. - /// - public string Hostname - { - get - { - return hostName; - } - } - /// - /// A singleton blank instance of UserInfo used when an instance is required + /// An IRC user's nick name. + public string Nick { get { return nickName; } } + + /// An IRC user's system username. + public string User { get { return userName; } } + + /// The hostname of the IRC user's machine. + public string Hostname { get { return hostName; } } + + /// A singleton blank instance of UserInfo used when an instance is required /// by a method signature but no infomation is available, e.g. the last reply - /// from a Who request. - /// - public static UserInfo Empty - { - get - { - return EmptyInstance; - } - } + /// from a Who request. + public static UserInfo Empty { get { return EmptyInstance; } } - /// - /// A string representation of this object which - /// shows all its values. - /// - public override string ToString() - { + /// A string representation of this object which shows all its values. + public override string ToString() { return string.Format("Nick={0} User={1} Host={2}", Nick, User, Hostname ); } }