public Test2() { id = new UserKey(); id.Userid = 0; id.Loginid = String.Empty; username = String.Empty; }
public Test2( int uid, String lid) : this() { id = new UserKey(); id.Userid = uid; id.Loginid = lid; username = String.Empty; }
public override bool Equals(object obj) { if (this == obj) { return(true); } UserKey key = obj as UserKey; if (key == null) { return(false); } if (userid != key.userid || loginid != key.loginid) { return(false); } return(true); }