Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have an array .i want to read it and convert it and pass it to a empty array
example
C#
a[]={1,2,3,4,5}

b[]={}
Tst.Password=Password;
           for( int i=0;i<=Password.Length;i++)
           {
           foreach (string t in Password)
           {
                Tst.Passwordtmp = g_obj_Encryption.md5("Password");
           }

           }

here i want to read a[] and method call then store it to b[] one by one
Posted
Updated 23-Nov-15 19:47pm
v2
Comments
Sergey Alexandrovich Kryukov 24-Nov-15 1:23am    
Don't use unsafe MD5 on passwords. There is SHA-2 family for this purpose. But what's the problem?
—SA
Sinisa Hajnal 24-Nov-15 2:14am    
Use array.copy or array.clone depending on what you need exactly (read MSDN for details)
Jawad Ahmed Tanoli 24-Nov-15 2:17am    
you can use Array.Copy Method

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900