Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Language: English

Pages: 1560

ISBN: 1118833031

Format: PDF / Kindle (mobi) / ePub

Comprehensive, advanced coverage of C# 5.0 and .NET 4.5.1

Whether you're a C# guru or transitioning from C/C++, staying up to date is critical to your success. Professional C# 5.0 and .NET 4.5.1 is your go-to guide for navigating the programming environment for the Windows platform. After a quick refresher of the C# basics, the team of expert authors dives in to C# 5.0 and updates for NET 4.5.1. Includes:

  • Different behaviors for .NET 4.5.1 and the changes to Visual Studio 2013
  • Changes to ASP.NET Core, Web Forms, MVC, and Web API
  • Updated Windows 8 deployments and localization, event logs, and data flow
  • Shuffling of ADO.NET Entity Framework
  • Additions to Windows Workflow Foundation
  • New Windows Runtime 2.0 updates

Practical CSS3: Develop and Design

Pro Website Development and Operations: Streamlining DevOps for large-scale websites

The International Bank of Bob: Connecting Our Worlds One $25 Kiva Loan at a Time

Privatizing China: Socialism from Afar

The China Wave: Rise of a Civilizational State

Trigeminal Nerve Injuries











exceptions ➤➤ Use of attributes The following sections explore each of these features. Support for Object Orientation and Interfaces The language independence of .NET does have some practical limitations. IL is inevitably going to implement some particular programming methodology, which means that languages targeting it need to be compatible with that methodology. The particular route that Microsoft has chosen to follow for IL is that of classic object-oriented programming, with single

move it to the heap; object references are also useful in reflection, when code must manipulate objects whose specific types are unknown. 30-01-2014 20:04:51 36  ❘  CHAPTER 2  Core C# ➤➤ The object type implements a number of basic, general-purpose methods, which include Equals(), GetHashCode(), GetType(), and ToString(). Responsible user-defined classes may need to provide replacement implementations of some of these methods using an object-oriented technique known as overriding, which is

displays the subsequent text to the user as if it were a compilation error message and then immediately abandons the compilation, so no IL code will be generated. You can use these directives as checks that you haven’t done anything silly with your #define statements; you can also use the #warning statements to remind yourself to do something: #if DEBUG && RELEASE #error "You've defined DEBUG and RELEASE simultaneously!" #endif #warning "Don't forget to remove this line before the boss tests the

Conventions In any development language, certain traditional programming styles usually arise. The styles are not part of the language itself but rather are conventions — for example, how variables are named or how certain classes, methods, or functions are used. If most developers using that language follow the same conventions, it makes it easier for different developers to understand each other’s code — which in turn generally helps program maintainability. Conventions do, however, depend on

127 public static T2 Accumulate(IEnumerable source, Func action) { T2 sum = default(T2); foreach (T1 item in source) { sum = action(item, sum); } return sum; } In calling this method, it is necessary to specify the generic parameter types because the compiler cannot infer this automatically. With the first parameter of the method, the accounts collection that is assigned is of type IEnumerable. With the second parameter, a Lambda expression is used that defines

Download sample