Programming Reactive Extensions and LINQ [electronic resource] /
Liberty, Jesse.author.
Betts, Paul.author.
Pro Reactive Extensions and LINQ is a deep dive into the next important technology for .NET developers: Reactive Extensions. This in-depth tutorial goes beyond what is available anywhere else to teach how to write WPF, Silverlight, and Windows Phone applications using the Reactive Extensions (Rx) to handle events and asynchronous method calls. Reactive programming allows you to turn those aspects of your code that are currently imperative into something much more event-driven and flexible. For this reason, it’s sometimes referred to as LINQ for Events. Reactive programming hinges on the concept of the observable collection, as opposed to the simple enumerable collection with which we’re all familiar. For example, to extract data from a collection and add it to a list box, you would traditionally iterate through the list box, extracting each object in turn. This approach works fine, but it requires significant knowledge about the data you’re working with, which can be limiting. In Rx programming, you're instead informed about each object in turn and then free to react to each notification however you like, which affords much greater flexibility. This book shows you how reactive programming can be applied to a range of situations—from WPF applications to Windows Phone apps—to improve coding efficiency and boost performance.
Title Page; Copyright Page; Table of Contents; About the Authors; About the Technical Reviewer; Acknowledgments; Foreword; Introduction; CHAPTER 1 Introducing LINQ and Rx; What LINQ Is; What Rx Is; Getting Rx and LINQ; Distinguishing Rx and LINQ; Why Bother?; Choosing your IDE; C# and .NET Fundamentals; Var; Collection Initialization; IEnumerable; Properties; Automatic Properties; Object Initialization; Delegates; Anonymous Methods; Lambda Expressions; Hello LINQ; Hello Rx; Collections; Enumerable Collections; Observable Collections; Observable Collections vs. Enumerable Collections
Example: Working with Enumerable and Observable CollectionsSummary; CHAPTER 2: Core LINQ; LINQ Syntax; IEnumerable; Query Operators; Deferred Execution; The Good; The Bad; Core Operators; Any; Contains; Take; Distinct; Zip; SelectMany; Flattening Hierarchies; Recursively Traversing Hierarchies; Example: Parsing a Tab Separated File; Summary; CHAPTER 3: Core Rx; IObservable and IObserver; Example: Creating Observables; Creating an Observable with Return; Creating an Observable from Empty; Creating an Observable from a Range; Creating an Observable from an Array
Creating Observables from EventsExample: Searching Wikipedia; Observable Sequences; Rx Operators; Take; Skip; Distinct; Using; Zip; Example: Drag and Drop; Summary; CHAPTER 4: Practical Rx; Implementing Asynchronous Calls; Using Observable.Start; Using Observable.Return; Using SelectMany; Using FromAsyncPattern; Example: Programming Asynchronous Interactions With Rx; Add the Bing Service Reference; Create the UI; Stub the Rx.NET Function Prototypes; Implement the Rx.NET Prototypes; Implement SearchBingImageApi; Implement getUrlsFromSearchResults; Add an Event Handler for the Search Button
Implement Rx-based CreateIUmagefromURLComparing the Traditional Begin/End approach to Rx.Net; Summary; CHAPTER 5: Inside Rx; Window and Buffer; Understanding Window: The Core Method; Using Join Patterns; Using Multicast, Publish and IConnectableObservable; Understanding How IObservable Handles OnCompleted and OnError; Implementing Your Own Operators; Using Schedulers; Summary; CHAPTER 6: LINQ to SQL; Introducing LINQ to SQL; Test LINQ to SQL Queries with LINQPad; Write a Query; Filter Results with a Where Clause; Writing LINQ to SQL Code with Visual Studio; Add LINQ Libraries and Namespaces
Create an Entity ClassCreate a DataContext; Query the Database; Inspect a SQL Query; Understand the Table Class; Using LINQ to SQL; Manipulating Queries with the Take and Skip Operators; Sort and Group Results with the orderby and orderby_descending Operators; Aggregating and Grouping Results with IEnumerable and Its Extensions; Using LINQ to SQL Joins, Cross Joins, and Outer Joins; Using LINQ to SQL to Work with Relationships; Example: Building a Windows Phone Application Using LINQ to SQL; Create the Entity Classes; Define the DataContext; Instantiate the DataContext
Write the CreateBooks Event Handler
Includes index.
Includes index.
Pro Reactive Extensions and LINQ is a deep dive into the next important technology for .NET developers: Reactive Extensions. This in-depth tutorial goes beyond what is available anywhere else to teach how to write WPF, Silverlight, and Windows Phone applications using the Reactive Extensions (Rx) to handle events and asynchronous method calls. Reactive programming allows you to turn those aspects of your code that are currently imperative into something much more event-driven and flexible. For this reason, it’s sometimes referred to as LINQ for Events. Reactive programming hinges on the concept of the observable collection, as opposed to the simple enumerable collection with which we’re all familiar. For example, to extract data from a collection and add it to a list box, you would traditionally iterate through the list box, extracting each object in turn. This approach works fine, but it requires significant knowledge about the data you’re working with, which can be limiting. In Rx programming, you're instead informed about each object in turn and then free to react to each notification however you like, which affords much greater flexibility. This book shows you how reactive programming can be applied to a range of situations—from WPF applications to Windows Phone apps—to improve coding efficiency and boost performance.
Microsoft LINQ.
Windows presentation foundation.
Silverlight (Electronic resource)
Windows phone (Computer file)
Microsoft .NET Framework.
Microsoft software.
Microsoft .NET Framework.
Software engineering.
Microsoft and .NET.
Software Engineering/Programming and Operating Systems.