Wiley
Wiley.com
Print this page Share

Professional C# 2012 and .NET 4.5

ISBN: 978-1-118-31442-5
1584 pages
November 2012
Professional C# 2012 and .NET 4.5 (1118314425) cover image
Intermediate to advanced technique coverage, updated for C# 2012 and .NET 4.5

This guide is geared towards experienced programmers looking to update and enhance their skills in writing Windows applications, web apps, and Metro apps with C# and .NET 4.5. Packed with information about intermediate and advanced features, this book includes everything professional developers need to know about C# and putting it to work.

  • Covers challenging .NET features including Language Integrated Query (LINQ), LINQ to SQL, LINQ to XML, WCF, WPF, Workflow, and Generics
  • Puts the new Async keyword to work and features refreshers on .NET architecture, objects, types, inheritance, arrays, operators, casts, delegates, events, strings, regular expressions, collections, and memory management
  • Explores new options and interfaces presented by Windows 8 development, WinRT, and Metro style apps
  • Includes traditional Windows forms programming, ASP.NET web programming with C#, and working in Visual Studio 2012 with C#

Professional C# 2012 and .NET 4.5 is a comprehensive guide for experienced programmers wanting to maximize these technologies.

See More

INTRODUCTION xlix

PART I: THE C# LANGUAGE

CHAPTER 1: .NET ARCHITECTURE 3

CHAPTER 2: CORE C# 23

CHAPTER 3: OBJECTS AND TYPES 65

CHAPTER 4: INHERITANCE 89

CHAPTER 5: GENERICS 107

CHAPTER 6: ARRAYS AND TUPLES 129

CHAPTER 7: OPERATORS AND CASTS 151

CHAPTER 8: DELEGATES, LAMBDAS, AND EVENTS 183

CHAPTER 9: STRINGS AND REGULAR EXPRESSIONS 209

CHAPTER 10: COLLECTIONS 229

CHAPTER 11: LANGUAGE INTEGRATED QUERY 279

CHAPTER 12: DYNAMIC LANGUAGE EXTENSIONS 313

CHAPTER 13: ASYNCHRONOUS PROGRAMMING 325

CHAPTER 14: MEMORY MANAGEMENT AND POINTERS 347

CHAPTER 15: REFLECTION 375

CHAPTER 16: ERRORS AND EXCEPTIONS 393

PART II: VISUAL STUDIO

CHAPTER 17: VISUAL STUDIO 2012 417

CHAPTER 18: DEPLOYMENT 467

PART III: FOUNDATION

CHAPTER 19: ASSEMBLIES 487

CHAPTER 20: DIAGNOSTICS 519

CHAPTER 21: TASKS, THREADS, AND SYNCHRONIZATION 551

CHAPTER 22: SECURITY 601

CHAPTER 23: INTEROP 627

CHAPTER 24: MANIPULATING FILES AND THE REGISTRY 661

CHAPTER 25: TRANSACTIONS 705

CHAPTER 25: TRANSACTIONS 705

CHAPTER 27: WINDOWS SERVICES 771

CHAPTER 28: LOCALIZATION? 803

CHAPTER 29: CORE XAML 845

CHAPTER 30: MANAGED EXTENSIBILITY FRAMEWORK 863

CHAPTER 31: WINDOWS RUNTIME 893

PART IV: DATA

CHAPTER 32: CORE ADO.NET 917

CHAPTER 33: ADO.NET ENTITY FRAMEWORK 963

CHAPTER 34: MANIPULATING XML 995

PART V: PRESENTATION

CHAPTER 35: CORE WPF 1049

CHAPTER 36: BUSINESS APPLICATIONS WITH WPF 1101

CHAPTER 37: CREATING DOCUMENTS WITH WPF 1153

CHAPTER 38: WINDOWS STORE APPS 1175

CHAPTER 39: CORE ASP.NET 1211

CHAPTER 40: ASP.NET WEB FORMS 1239

CHAPTER 41: ASP.NET MVC 1283

CHAPTER 42: ASP.NET DYNAMIC DATA 1321

PART VI: COMMUNICATION

CHAPTER 43: WINDOWS COMMUNICATION FOUNDATION 1337

CHAPTER 44: WCF DATA SERVICES 1379

CHAPTER 45: WINDOWS WORKFLOW FOUNDATION 1399

CHAPTER 46: PEER-TO-PEER NETWORKING 1425

CHAPTER 46: PEER-TO-PEER NETWORKING 1425

INDEX 1473

See More
Download TitleSizeDownload
Full Code Download 95.31 MB Click to Download
Chapter 2 7.69 KB Click to Download
Chapter 3 1.63 KB Click to Download
Chapter 4 1.97 KB Click to Download
Chapter 5 195.77 KB Click to Download
Chapter 6 91.92 KB Click to Download
Chapter 7 21.81 KB Click to Download
Chapter 8 332.39 KB Click to Download
Chapter 9 3.67 KB Click to Download
Chapter 10 524.50 KB Click to Download
Chapter 11 256.72 KB Click to Download
Chapter 12 8.63 MB Click to Download
Chapter 13 326.51 KB Click to Download
Chapter 14 25.20 KB Click to Download
Chapter 15 23.07 KB Click to Download
Chapter 16 122.64 KB Click to Download
Chapter 18 7.76 MB Click to Download
Chapter 19 142.46 KB Click to Download
Chapter 20 340.39 KB Click to Download
Chapter 21 943.54 KB Click to Download
Chapter 22 225.27 KB Click to Download
Chapter 23 4.83 MB Click to Download
Chapter 25 121.66 KB Click to Download
Chapter 26 606.59 KB Click to Download
Chapter 27 137.97 KB Click to Download
Chapter 28 451.25 KB Click to Download
Chapter 29 306.43 KB Click to Download
Chapter 30 528.18 KB Click to Download
Chapter 31 532.39 KB Click to Download
Chapter 32 54.91 KB Click to Download
Chapter 33 2.74 MB Click to Download
Chapter 34 1.12 MB Click to Download
Chapter 35 5.25 MB Click to Download
Chapter 36 693.42 KB Click to Download
Chapter 37 243.02 KB Click to Download
Chapter 38 3.44 MB Click to Download
Chapter 39 147.49 KB Click to Download
Chapter 40 11.12 MB Click to Download
Chapter 41 31.23 MB Click to Download
Chapter 42 789.25 KB Click to Download
Chapter 43 3.06 MB Click to Download
Chapter 44 7.55 MB Click to Download
Chapter 45 909.62 KB Click to Download
Chapter 46 117.19 KB Click to Download
Chapter 47 311.81 KB Click to Download
ReadMe File 45.19 KB Click to Download
Error in Figures 9-1, 9-2, and 9-3, pages 213 and 218
Attached, please find updated Figures 9-1, 9-2, and 9-3, pages 213 and 218
72.84 KB Click to Download
See More

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
46 Error in Text
The first text after the code currently reads:

Note that you are not permitted to declare a multipart namespace nested within another namespace.

This sentence should be removed.
03/22/2013
74 Error in Text
After the heading ?Auto-Implemented Properties?, after the code line:

CURRENTLY READS:
The declaration private int Age; is not needed.

SHOULD READ:
The declaration private int age; is not needed.
03/22/2013
83 Error in Code
CURRENTLY READS:

if (mathReference.IsAlive)
{
    math = mathReference.Target as MathTest;
   math.Value = 30;
    Console.WriteLine(?Value field of math variable contains ? + math.Value);
    Console.WriteLine(?Square of 30 is ? + math.GetSquare());  
}
SHOULD READ:

math = mathReference.Target as MathTest;
if (math != null)
{
   math.Value = 30;
    Console.WriteLine(?Value field of math variable contains ? + math.Value);
    Console.WriteLine(?Square of 30 is ? + math.GetSquare());  
}
05/10/2013
203 Error in Code
Currently reads:
add
{
  newCarInfo += value;
}
remove
{
  newCarInfo = value;
}

Should be:
add
{
  newCarInfo += value;
}
remove
{
  newCarInfo -= value;
}
12/28/2012
208 Error in Code
Currently reads:
private delegate EventHandler newCarInfo;

Should read:
private EventHandler newCarInfo;
12/28/2012
218 Error in Figure 9-2
Upper two rectangles of the Figure 9-2:

CURRENTLY READS:
{0, 10:E

SHOULD READ:
{0, 10:E}
10/9/2013
225 Error in Text
2nd sentence in the paragraph after the first code block:

CURRENTLY READS:
?Note that you use another property on the Match object, Value, which contains the string identified for the match?.

SHOULD READ:
The sentence should be removed.
10/9/2013
255 Error in Code
In the code block, near the end of page 255:

Currently reads:
int numLength = id.Length 1;

Should read:
int numLength = id.Length - 1;
3/26/2013
381 Error in Code
Starting at 3rd line of code:

Currently:
  public LastModifiedAttribute(string dateModified, string changes)
  {
    dateModified = DateTime.Parse(dateModified);
    _changes = changes;
  }


Should be:
  public LastModifiedAttribute(string dateModified, string changes)
  {
    _dateModified = DateTime.Parse(dateModified);
    _changes = changes;
  }
10/03/2013
See More

Related Titles

Back to Top