Sams Teach Yourself C in 21 Days

(singke) #1

C# Is Powerful and Flexible ........................................................................


As mentioned before, with C# you are limited only by your imagination. The language
places no constraints on what can be done. C# can be used for projects as diverse as cre-
ating word processors, graphics, spreadsheets, and even compilers for other languages.
C# makes it easy to create classes, objects, and other components that can be packaged
and reused easily. Additionally, it has been created with the Internet in mind.
Additionally, the use of attributes makes it possible to expand the functionality of the
language without the need to change the language.

C# Is a Language of Few Words ..................................................................


C# is a language that uses a limited number of words. C# contains only a handful of key-
words,which serve as the base on which the language’s functionality is built. Table B7.1
lists the C# keywords. You’ll see that many of these keywords are the same as those used
in C. There are, however, a number of additional keywords within C#.

TABLEB7.1 The C# Keywords
abstract as base bool break
byte case catch char checked
class const continue decimal default
delegate do double else enum
event explicit extern false finally
fixed float for foreach
goto if implicit in int
interface internal is lock long
namespace new null object operator
out override params private protected
public readonly ref return sbyte
sealed short sizeof stackalloc
static string struct switch this
throw true try typeof uint
ulong unchecked unsafe ushort using
virtual void while

768 Bonus Day 7

42 448201x-Bonus7 8/13/02 11:24 AM Page 768

Free download pdf