Naming 598 signing and strong names 599 loading 601

Info icon This preview shows pages 14–18. Sign up to view the full content.

View Full Document Right Arrow Icon
Naming 598 Signing and Strong Names 599 Loading 601 Loading from the Application Folder 602 Loading from the GAC 603 Loading from a Silverlight .xap File 603 Explicit Loading 604 Summary 605 16. Threads and Asynchronous Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607 Threads 609 Threads and the OS Scheduler 611 The Stack 613 The Thread Pool 620 Thread Affinity and Context 622 Common Thread Misconceptions 623 Multithreaded Coding Is Hard 629 Multithreading Survival Strategies 632 Synchronization Primitives 634 Monitor 634 Other Lock Types 645 Other Coordination Mechanisms 649 Events 649 Countdown 650 BlockingCollection 650 Asynchronous Programming 651 The Asynchronous Programming Model 652 The Event-Based Asynchronous Pattern 655 Ad Hoc Asynchrony 656 The Task Parallel Library 656 Tasks 657 Cancellation 663 Error Handling 665 Data Parallelism 666 Parallel For and ForEach 667 PLINQ: Parallel LINQ 669 Summary 670 17. Attributes and Reflection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671 Attributes 671 Types of Attributes 672 Custom Attributes 673 xii | Table of Contents
Image of page 14

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Reflection 677 Inspecting Metadata 678 Type Discovery 679 Reflecting on a Specific Type 681 Late Binding 683 Summary 686 18. Dynamic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687 Static Versus Dynamic 687 The Dynamic Style and COM Automation 689 The dynamic Type 690 Object Types and dynamic 693 dynamic in Noninterop Scenarios? 703 Summary 706 19. Interop with COM and Win32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707 Importing ActiveX Controls 707 Importing a Control in .NET 708 Interop Assemblies 711 No PIA 712 64-bit Versus 32-bit 713 P/Invoke 716 Pointers 720 C# 4.0 Interop Syntax Enhancements 725 Indexed Properties 725 Optional ref 726 Summary 727 20. WPF and Silverlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 729 Xaml and Code Behind 731 Xaml and Objects 735 Elements and Controls 738 Layout Panels 739 Graphical Elements 748 Controls 755 User Controls 760 Control Templates 761 Styles 764 The Visual State Manager 766 Data Binding 767 Data Templates 769 Summary 773 Table of Contents | xiii
Image of page 15
21. Programming ASP.NET Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 775 Web Forms Fundamentals 775 Web Forms Events 776 Web Forms Life Cycle 778 Creating a Web Application 779 Code-Behind Files 780 Adding Controls 781 Server Controls 783 Data Binding 784 Examining the Code 789 Adding Controls and Events 790 Summary 794 22. Windows Forms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795 Creating the Application 796 Adding a Binding Source 797 Controls 800 Docking and Anchoring 805 Data Binding 806 Event Handling 811 Summary 813 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815 xiv | Table of Contents
Image of page 16

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Preface Microsoft unveiled the .NET Framework in 2000, and in the decade that followed, it became an extremely popular choice for developing software for Windows. While .NET supports many programming languages, it is most strongly associated with the language designed specifically for the platform: C#. C# has grown considerably since its launch. Each new version enabled new program- ming techniques—C# 2.0 added generics and enhanced functional programming ca- pabilities, then integrated query features and yet more powerful functional capabilities arrived in C# 3.0, and now C# 4.0 adds new dynamic language capabilities.
Image of page 17
Image of page 18
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern