Summary


In this chapter, you saw the final batch of techniques required to complete your knowledge of the C# language. You looked at:

  • The qualification of type names in namespaces (in more detail than you saw in earlier chapters).

  • How to use the :: operator and global keyword to ensure references to types are references to the types you want.

  • How to implement your own exception objects and pass more detailed information to the exception handler.

  • Using a custom exception in the code for CardLib — the card game library you've been developing in the last few chapters.

  • The important topic of events and event handling. Although quite subtle, and initially difficult to get your head around, the code involved is quite simple — and you'll certainly be using event handlers a lot in the rest of the book.

  • Some simple illustrative examples of events and how to handle them.

You also made one final addition to the CardLib library. Once complete, you used this library to create a simple card game application. This application should serve as a demonstration of pretty much all the techniques you've looked at in the first part of this book.

With this chapter, you have completed not only a complete description of OOP as applied to C# programming but also a complete description of the C# language. From this point on, you will be applying this knowledge to more complex scenarios, such as creating Windows and Web applications, as well as making more use of the .NET Framework.




Beginning Visual C# 2005
Beginning Visual C#supAND#174;/sup 2005
ISBN: B000N7ETVG
EAN: N/A
Year: 2005
Pages: 278

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