Guest User

Untitled

a guest
Dec 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2. namespace UserAccountSerializer
  3. {
  4. [Serializable]
  5. public class UserAccount
  6. {
  7. private string userName;
  8. private string password;
  9.  
  10. public UserAccount(string username, string password)
  11. {
  12. this.userName = username;
  13. this.password = password;
  14. }
  15.  
  16. public override string ToString()
  17. {
  18. return "Uname: " + userName + " Password: " + password;
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment