What is the IConvertible interface?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the IConvertible interface?

Rating:

The IConvertible interface of the System namespace defines methods that convert the value of an object of an implementing type into a common language runtime (CLR) type that has an equivalent value. The CLR uses the Convert class for exposing the IConvertible interface. It uses types that include Boolean, SByte, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, Double, Decimal, DateTime, Char, and String.

Some of the methods defined by this interface are ToBoolean, ToDateTime, ToSingle, ToString, etc. The ToBoolean method converts the value of an object that is equivalent to the CLR Boolean value by using the specified culture-specific formatting information. The ToDateTime method converts the value of an object that is equivalent to the CLR DateTime value by using the specified culture-specific formatting information.

Similarly, the ToSingle method converts the value of an object that is equivalent single-precision floating-point number by using the specified culture-specific formatting information. The ToString method converts the value of an object that is equivalent to the CLR String value by using the specified culture-specific formatting information.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.