Chapter 5

 < Day Day Up > 

A1:

CultureInfo represents information about a culture. Here is an example of its use:

 CultureInfo ci = new CultureInfo("de-AT");  // German-Austria 

A2:

CultureInfo() with no parameters and Thread.CurrentThread.CurrentCulture return objects with current culture.

A3:

  1. 2

  2. 3

  3. 1

A4:

Use the instance method when the expression is used repeatedly, because, unlike the static approach, it does not have to recompile the expression each time.

A5:

Equals() is used to check the memory location. If different, a character-by-character comparison is performed.

A6:

  1. 2

  2. 1

  3. 3

A7:

a. FileInfo is not created from a FileStream.

A8:

a

A9:

  1.  true 

  2.  true 

  3.  false 

  4.  false 

     < Day Day Up > 


    Core C# and  .NET
    Core C# and .NET
    ISBN: 131472275
    EAN: N/A
    Year: 2005
    Pages: 219

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net