Examveda

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

Answer: Option A


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp