05498nam 2200697 a 450 991045751380332120200520144314.01-283-45353-397866134535321-84969-079-0(CKB)2550000000087721(EBL)934518(OCoLC)775679003(SSID)ssj0000644655(PQKBManifestationID)11390952(PQKBTitleCode)TC0000644655(PQKBWorkID)10676398(PQKB)11700455(MiAaPQ)EBC934518(CaSebORM)9781849690782(PPN)228045533(Au-PeEL)EBL934518(CaPaEBR)ebr10529556(CaONFJC)MIL345353(EXLCZ)99255000000008772120120303d2012 uy 0engur|n|---|||||txtccr.NET 4.0 Generics[electronic resource] beginner's guide : enhance the type safety of your code and create applications easily using Generics in the .NET 4.0 Framework /Sudipta Mukherjee1st editionBirmingham, U.K. Packt Pub.20121 online resource (396 p.)"Learn by doing : less theory more results"--Cover.Includes index.1-84969-078-2 Copyright; Credits; Foreword; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Why Generics?; An analogy; Reason 1: Generics can save you a lot of typing; Reason 2: Generics can save you type safety woes, big time; What's the problem with this approach?; Reason 3: Generics leads to faster code; Reason 4: Generics is now ubiquitous in the .NET ecosystem; Setting up the environment; Summary; Chapter 2: Lists; Why bother learning about generic lists?; Types of generic lists; Checking whether a sequence is a palindrome or notTime for action - creating the generic stack as the bufferTime for action - completing the rest of the method; Designing a generic anagram finder; Time for action - creating the method; Life is full of priorities, let's bring some order there; Time for action - creating the data structure for the prioritized shopping list; Time for action - let's add some gadgets to the list and see them; Time for action - let's strike off the gadgets with top-most priority after we have bought them; Time for action - let's create an appointment list; Live sorting and statistics for online biddingTime for action - let's create a custom class for live sortingWhy did we have three LinkedList as part of the data structure?; An attempt to answer questions asked by your boss; Time for action - associating products with live sorted bid amounts; Time for action - finding common values across different bidding amount lists; You will win every scrabble game from now on; Time for action - creating the method to find the character histogram of a word; Time for action - checking whether a word can be formed; Time for action - let's see whether it worksTrying to fix an appointment with a doctor?Time for action - creating a set of dates of the doctors' availability; Time for action - finding out when both doctors shall be present; Revisiting the anagram problem; Time for action - re-creating the anagram finder; Lists under the hood; Summary; Chapter 3: Dictionaries; Types of generic associative structures; Creating a tag cloud generator using dictionary; Time for action - creating the word histogram; Creating a bubble wrap popper game; Time for action - creating the game console; Look how easy it was!How did we decide we need a dictionary and not a list?Let's build a generic autocomplete service; Time for action - creating a custom dictionary for autocomplete; Time for action - creating a class for autocomplete; The most common pitfall. Don't fall there!; Let's play some piano; Time for action - creating the keys of the piano; How are we recording the key strokes?; Time for action - switching on recording and playing recorded keystrokes; How it works?; C# Dictionaries can help detect cancer. Let's see how!; Time for action - creating the KNN APITime for action - getting the patient recordsThis is a concise, practical guide that will help you learn Generics in .NET, with lots of real world and fun-to-build examples and clear explanations. It is packed with screenshots to aid your understanding of the process. This book is aimed at beginners in Generics. It assumes some working knowledge of C# , but it isn't mandatory. The following would get the most use out of the book: Newbie C# developers struggling with Generics. Experienced C++ and Java Programmers who are migrating to C# and looking for an alternative to other generic frameworks like STL and JCF would find this book handy.Generic programming (Computer science)Microsoft .NETMicrosoft .NET FrameworkElectronic books.Generic programming (Computer science)Microsoft .NET.Microsoft .NET Framework.005.2768Mukherjee Sudipta892441MiAaPQMiAaPQMiAaPQBOOK9910457513803321NET 4.0 Generics2132724UNINA