Previous Section  < Day Day Up >  Next Section

Chapter 5

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
    
    

    Previous Section  < Day Day Up >  Next Section