concept feature in category c#

appears as: Features, features, feature, The features, The feature, Feature
C# in Depth, Fourth Edition

This is an excerpt from Manning's book C# in Depth, Fourth Edition.

Asynchrony has been difficult in mainstream languages for a long time. More niche languages have been created with asynchrony in mind from the start, and some functional languages have made it relatively easy as just one of the things they handle neatly. But C# 5 brought a new level of clarity to programming asynchrony in a mainstream language with a feature usually referred to as async/await. The feature consists of two complementary parts around async methods:

This chapter is a grab bag of features. No particular theme runs through it besides expressing your code’s intention in ever leaner ways. The features in this chapter are the ones left over when all the obvious ways of grouping features have been used. That doesn’t in any way undermine their usefulness, however.

C# in Depth

This is an excerpt from Manning's book C# in Depth.

Since then, things have only gotten better. Each new version of C# has added significant features to reduce developer angst, but always in a carefully considered way, and with little backward incompatibility. Even before C# 4 gained the ability to use dynamic typing where it’s genuinely useful, many features traditionally associated with dynamic and functional languages had made it into C#, leading to code that’s easier to write and maintain. Similarly, while the features around asynchrony in C# 5 aren’t exactly the same as those in F#, it feels to me like there’s a definite influence.

Windows Store App Development

This is an excerpt from Manning's book Windows Store App Development.

You picked up this book, so I’m going to assume you’re already interested in Windows 8 and don’t need encouragement in your selection. Instead, I’d like to take this first chapter and build something right away—just throw you right into the fire. By the end of this chapter, you’ll know how to create a simple app and have a working development environment you can use as we dive more deeply into the features in the remainder of this book.

As OSs became more complex and offered more features, the number of icons increased, and the cognitive load associated with remembering all those pictures became a real burden. Most users used a very small percentage of features of their applications because they simply couldn’t find everything they needed.

Dependency Injection in .NET

This is an excerpt from Manning's book Dependency Injection in .NET.

DI Container feature comparison chart

Feature Castle Windsor Structure-Map Spring .NET Autofac Unity MEF
CODE AS CONFIGURATION X X   X X  
AUTO-REGISTRATION X X   X    
XML configuration X X X X X  
Modular configuration X X X X X X
Custom lifetimes X X   (X) X  
Decommissioning X     X (X) X
INTERCEPTION X   X   X  
(X) = partial support
Figure 2.6. So far Mary has implemented the Data Access Layer of her application. The Domain Logic Layer and User Interface Layer are still left before the feature is complete.

In this chapter, you got a taste of the Autofac DI CONTAINER; although it’s a second-generation container, it’s still fairly comprehensive and addresses many of the more tricky situations we typically encounter when we use DI CONTAINERS. Its architecture is built directly on the features of .NET 3.5 and C# 3.0, but even though it internally utilizes delegates and code blocks, the general API is fairly easy to use.

An important overall theme for Autofac seems to be one of explicitness. It doesn’t attempt to guess what we mean, but rather offers an easy-to-use API that provides us with options to explicitly enable features.

Continuous Integration in .NET

This is an excerpt from Manning's book Continuous Integration in .NET.

A branch is a separate line of development. It shares the same history but lives independently from the trunk and other lines of development. It’s used mostly for release stabilization (long-lived branch), a place where you can work on a feature without considering influence from others (medium-lived branch), or as a try-out field for experimental development (short-lived branch). Generally, it’s a good idea to have a branch for every software version used by a customer. This makes it easier to find and fix bugs in a particular version.

Microsoft TFS has been around for some time, but prior to the 2010 release it was cost-prohibitive to many teams. TFS is much more than a CI server. It comes with an integrated source control server, which we discussed in chapter 2. It has extensive work-item tracing tools, and it integrates with SQL Server to provide rich reporting. The feature that’s most important for setting up a CI scenario is TFS Team Build. It lets you create a full-blown CI server of your own. It’s a grown-up solution for collaborative software development (see figure 4.28).

Table 4.1. CI server matrix that compares the features of three CI servers

Aspect

CruiseControl.NET

TFS 2010

TeamCity

Cost yes somewhat somewhat
XML no yes yes
Tools support yes somewhat yes
Documentation yes yes yes
CI functionality yes yes yes
Additional features no yes yes
Easy to use no somewhat yes
Cool (subjective) somewhat somewhat yes
ASP.NET AJAX in Action

This is an excerpt from Manning's book ASP.NET AJAX in Action.

After examining the architecture and features in the framework, you can easily deduce the goals and intentions that ASP.NET AJAX sets out to accomplish:

This chapter is the first one dedicated to the Microsoft Ajax Library, which is written on top of JavaScript and constitutes the client portion of the ASP.NET AJAX framework. In the tour of the basic framework components in chapter 1, you began to write code using the library’s syntax. This chapter will provide more examples and give you a comprehensive overview of the library’s features.

The Microsoft Ajax Library is rich in features, which we’ve grouped into logical categories. Because we can’t explore all of them in a single chapter, the following list shows how the features are distributed in the book’s various chapters: