Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
changing basic to C# program:

CBool(lNumberOfBytesRead)


to what in C#????
Posted
Comments
Sergey Alexandrovich Kryukov 6-Nov-12 1:10am    
Why? What it supposed to mean, semantically?
--SA

1 solution

Convert.ToBoolean with an Int64 parameter should do - http://msdn.microsoft.com/en-us/library/wb834abx%28v=vs.100%29.aspx[^].
 
Share this answer
 
Comments
Member 9445358 5-Nov-12 23:29pm    
OH shoot! I kept trying that but it said Convert didn't exist.
Just put in using system and it worked!
Abhinav S 6-Nov-12 0:56am    
Happens sometimes. :)

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