Summary

for RuBoard

In this chapter we have covered the essentials of the C# language, which should equip you to start writing nontrivial programs in C#. We surveyed variables , operators, control structures, formatting, methods , and input/output. We examined classes in detail, and we looked at some convenience features, such as properties. We covered the essentials of data types in C#, which map to the Common Type System. We discussed the fundamental distinction between value and reference types, and saw how to convert between them using boxing and unboxing operations. We examined some standard types, such as string , StringBuilder , and Array . We covered some additional topics concerning methods, including parameter passing, variable length parameter lists, method overloading, and operator overloading. We discussed exception handling in C# in some detail, including the use of user defined exception classes and structured exception handling. We concluded the chapter by looking at how you can have "unsafe" sections of C# code, which can be used to work with pointers for efficiency or for interoperating with legacy code.

A number of examples pertained to a hotel reservation system. In the next chapter we will study object-oriented programming in C#, and we will extend our hotel reservation example to a case study, which will be continued throughout the rest of the book.

for RuBoard


Application Development Using C# and .NET
Application Development Using C# and .NET
ISBN: 013093383X
EAN: 2147483647
Year: 2001
Pages: 158

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