Click here to Skip to main content
15,899,634 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dim hashedDataBytes As Byte()

hi can u change this to c#..
Posted
Updated 23-Dec-11 19:06pm
v4
Comments
LanFanNinja 24-Dec-11 0:59am    
Please do not completely change questions like this! It really confuses people. :) Recheck my solution below.
ythisbug 24-Dec-11 1:06am    
ok sorry..

 
Share this answer
 
Comments
Monjurul Habib 24-Dec-11 5:11am    
5!
EDIT 2:
// Answer for newest question (V2) //
You need to cast the object to an int for example
C#
int iResults = (int)cmd.ExecuteScalar();

should do the trick


// Answer for first question before edit //
this code
VB
Dim hashedBytes As Byte()


in C# would be
C#
byte[] hashedBytes;


EDIT:
You would then of course need to initialize the array. For example

C#
byte[] hashedBytes = new byte[128];
 
Share this answer
 
v5
Comments
ythisbug 24-Dec-11 1:07am    
correct answer : byte[] hashedBytes;

thank you
LanFanNinja 24-Dec-11 1:11am    
You're welcome.
thatraja 25-Dec-11 1:02am    
5!
LanFanNinja 25-Dec-11 1:14am    
Thank you.
Giving solution Helfful for u....

byte[] hashedDataBytes = null;
 
Share this answer
 
hi it will be like this


C#
byte[] hashedDataBytes = null;
 
Share this answer
 

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