// This example demonstrates overloads of the TryParse method for // several base types, and the TryParseExact method for DateTime. // In most cases, this example uses the most complex overload; that is, the overload // with the most parameters for a particular type. If a complex overload specifies // null (Nothing in Visual Basic) for the IFormatProvider parameter, formatting // information is obtained from the culture associated with the current thread. // If a complex overload specifies the style parameter, the parameter value is // the default value used by the equivalent simple overload. using System; using System.Globalization; class Sample