Skip to main content

Commonly Used Interfaces and Patterns

  • Chapter
Visual C# 2010 Recipes
  • 1115 Accesses

Abstract

The recipes in this chapter show you how to implement patterns you will use frequently during the development of Microsoft .NET Framework applications. Some of these patterns are formalized using interfaces defined in the .NET Framework class library. Others are less rigid, but still require you to take specific approaches to their design and implementation of your types. The recipes in this chapter describe how to do the following:

  • Create custom serializable types that you can easily store to disk, send across the network, or pass by value across application domain boundaries (recipe 13-1)

  • Provide a mechanism that creates accurate and complete copies (clones) of objects (recipe 13-2)

  • Implement types that are easy to compare and sort (recipe 13-3)

  • Support the enumeration of the elements contained in custom collections using a default or custom iterator (recipes 13-4 and 13-5)

  • Ensure that a type that uses unmanaged resources correctly releases those resources when they are no longer needed (recipe 13-6)

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Allen Jones and Adam Freeman

About this chapter

Cite this chapter

Jones, A., Freeman, A. (2010). Commonly Used Interfaces and Patterns. In: Visual C# 2010 Recipes. Apress. https://doi.org/10.1007/978-1-4302-2526-3_13

Download citation

Publish with us

Policies and ethics