ToString() public method

public ToString ( ) : string
return string
 private bool HasUserName(string name, User u)
 {
     return u.ToString().ToLower() == name;
 }