The goto Statement as a Replacement for the break Statement

 

ToUpper() and ToLower()

These perennial favorites are also contained in Visual Studio C#. The statements are:

 strName = strName.ToLower(); 

and

 strName = strName.ToUpper(); 

Even though the word new does not appear in these statements, a new copy of the string is created each time and the old copy is left for eventual pickup by the garbage collector.

 


Unlocking Microsoft C# V 2.0 Programming Secrets
Unlocking Microsoft C# V 2.0 Programming Secrets (Wordware Applications Library)
ISBN: 1556220979
EAN: 2147483647
Year: 2005
Pages: 129

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