Advertisement
Guest User

Untitled

a guest
May 12th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1.  
  2.             if (vAdmin == true)
  3.             {
  4.                 LoginInfo.Admin Ad_log = new LoginInfo.Admin();
  5.                 int i = 0;
  6.                 foreach(Byte b in EncodedPass)
  7.                 {
  8.                     Ad_log.ad_Password[i] = EncodedPass[i];//Error is here
  9.                     i++;
  10.                 }
  11.             }
  12.  
  13. //Class with Ad_log
  14.  
  15.   public struct Admin
  16.         {
  17.             private string a_UserName;
  18.             private Byte[] a_Password;
  19.  
  20.             public string ad_UserName
  21.             {
  22.                 get { return a_UserName; }
  23.                 set { a_UserName = value; }
  24.             }
  25.             public Byte[] ad_Password
  26.             {
  27.                 get { return a_Password; }
  28.                 set { a_Password = value; }
  29.             }
  30.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement