Which Conversion function of ‘Convert.TOInt32()’ and ‘Int32.Parse()’ is efficient? i) Int32.Parse() is only used for strings and throws

thanhthao

New member
Which Conversion function of ‘Convert.TOInt32()’ and ‘Int32.Parse()’ is efficient?
i) Int32.Parse() is only used for strings and throws argument exception for null string
ii) Convert.Int32() used for data types and returns directly '0' for null string
A. ii
B. Both i, ii
C. i
D. None of the mentioned
 

Tìm kiếm

Back
Top