Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public struct User
- {
- string Name;
- string Surname;
- string Login;
- string Password;
- string secretCode;
- public User(string Name, string Surname, string Login, string Password, string secretCode)
- {
- this.Name = Name;
- this.Surname = Surname;
- this.Login = Login;
- this.Password = Password;
- this.secretCode = secretCode;
- }
- public static string nameReturn(User usrname)
- {
- return usrname.Name;
- }
- public static string surnameReturn(User usrname)
- {
- return usrname.Surname;
- }
- public static string loginReturn(User usrname)
- {
- return usrname.Login;
- }
- public static string passwordReturn(User usrname)
- {
- return usrname.Password;
- }
- public bool Auth(string login, string password)
- {
- if (this.Login == login && this.Password == password)
- {
- return true;
- }
- else return false;
- }
- public string secretcodeReturn()
- {
- if (Auth(Login, Password))
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement