can '1' be conver to true ,and the '0' conver to false ?

E

Eliyahu Goldin

For integers System.Convert.ToBoolean(i) will return true for any non-zero
i.

Eliyahu
 
G

Guest

There is (see the other reply) but you should never rely on this - don't
assume the underlying correspondence of various types. Historically, this
has changed for VB, for instance.

David Anton
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# converter
and the Instant VB C# to VB.NET converter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top