Abstract: With Generics, Generic Collections, and Generic Enumerables we are now writing code in new, much more powerful ways. Generics (MyClass, List, etc.) is the foundation of this, and all three are a critical part of many leading edge technologies, including LINQ. They are also powerful, effective tools for your own use. In this practical, feature-packed, C# code intensive session you will learn the ins and outs of Generics, and its uses and limitations. We will explore enumerable interfaces (required for foreach( ), LINQ, and LINQ extension methods), how they work, how to use them, and especially how to get the compiler to do most of the implementation. We’ll cover the generic versions of .NET Collections (List< >, LinkedList< >, Stack< >, Queue< >, Dictionary< >, HashSet< >, etc.) and how to select and how to use them. We’ll also look at the new generic delegate types and new design patterns that use them. We will see this in action with a simple Poker card example. From a card class (and its enumeration) and decks (collections), through shuffling (enumerating with a generic method), dealing and cheating (enumerating with collections, generic delegates), to evaluating poker hands (enumerations and surprisingly simple LINQ).

About the Presenter: Steve Bearman is an independent software developer with his company, Suzy B Studios, and Chase Computing International, and Systems Engine. He has developed software throughout his professional career, originally in direct support of science and engineering, later for the broader range of technology, medicine, business, ecommerce, and finance. He has taught graduate-level computer science, and has published technical papers dealing with the collection and use of data. For several years he managed operations and marketing for a manufacturing corporation. His recent large software projects include supporting international clients for a large, networked GPS-based fleet management system he developed; developing software for a large hedge fund; and designing and developing ASP.NET software in support of NASA/JPL’s Deep Space Network. He has many great colleagues and enjoys collaborating on projects of all sizes.

This is a Green Dot sponsored event. There is no entry fee and the event is free for attendees.

  • Share/Bookmark