Skip to main content

Generics

  • Chapter
  • First Online:
Target C#
  • 911 Accesses

Abstract

In the last chapter, we learned about events and how there is a relationship between events and delegates, which themselves have a strong relationship with methods. We learned that events trigger event handlers, so the action of the event is to trigger a method. We also learned that we have a publish and subscribe relationship where the object that raises the event is the publisher, while the object that handles the event is the subscriber. Now in this chapter, we will look at a very useful concept called generics.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.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

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Byrne, G. (2022). Generics. In: Target C#. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-8619-7_23

Download citation

Publish with us

Policies and ethics