Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace UserAccountSerializer
- {
- [Serializable]
- public class UserAccount
- {
- private string userName;
- private string password;
- public UserAccount(string username, string password)
- {
- this.userName = username;
- this.password = password;
- }
- public override string ToString()
- {
- return "Uname: " + userName + " Password: " + password;
- }
- }
- }
Add Comment
Please, Sign In to add comment