Skip to main content

Beginning Visual C# 2012 Programming

Beginning Visual C# 2012 Programming

Karli Watson, Jacob Vibe Hammer, Jon D. Reid, Morgan Skinner, Daniel Kemper, Christian Nagel

ISBN: 978-1-118-31441-8

Dec 2012

912 pages

In Stock

$44.99

Description

Step-by-step beginner’s guide to Visual C# 2012

Written for novice programmers who want to learn programming with C# and the .NET framework, this book offers programming basics such as variables, flow control, and object oriented programming. It then moves into web and Windows programming and data access (databases and XML). The authors focus on the tool that beginners use most often to program C#, the Visual C# 2012 development environment in Visual Studio 2012.

  • Puts the spotlight on key beginning level topics with easy-to-follow instructions for Microsoft Visual C# 2012
  • Explores how to program for variables, expressions, flow control, and functions
  • Explains the debugging process and error handling as well as object oriented programming, and much more

Beginning Microsoft Visual C# 2012 Programming offers beginners a guide to writing effective programming code following simple step-by-step methods, each followed by the opportunity to try out newly acquired skills.

INTRODUCTION xxxi

PART I: THE C# LANGUAGE

CHAPTER 1: INTRODUCING C# 3

CHAPTER 2: WRITING A C# PROGRAM 13

CHAPTER 3: VARIABLES AND EXPRESSIONS 25

CHAPTER 4: FLOW CONTROL 49

CHAPTER 5: MORE ABOUT VARIABLES 79

CHAPTER 6: FUNCTIONS 105

CHAPTER 7: DEBUGGING AND ERROR HANDLING 131

CHAPTER 8: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING 157

CHAPTER 9: DEFINING CLASSES 177

CHAPTER 10: DEFINING CLASS MEMBERS 203

CHAPTER 11: COLLECTIONS, COMPARISONS, AND CONVERSIONS 235

CHAPTER 12: GENERICS 279

CHAPTER 13: ADDITIONAL OOP TECHNIQUES 313

CHAPTER 14: C# LANGUAGE ENHANCEMENTS 339

PART II: WINDOWS PROGRAMMING

CHAPTER 15: BASIC DESKTOP PROGRAMMING 381

CHAPTER 16: ADVANCED DESKTOP PROGRAMMING 425

CHAPTER 17: WINDOWS STORE APPS 469

CHAPTER 18: DEPLOYING DESKTOP APPLICATIONS 513

PART III: WEB PROGRAMMING

CHAPTER 19: ASP.NET WEB PROGRAMMING 535

CHAPTER 20: DEPLOYING WEB APPLICATIONS 591

PART IV: DATA ACCESS

CHAPTER 21: FILE SYSTEM DATA 605

CHAPTER 22: XML 639

CHAPTER 23: INTRODUCTION TO LINQ 663

CHAPTER 24: APPLYING LINQ 699

PART V: ADDITIONAL TECHNIQUES

CHAPTER 25: WINDOWS COMMUNICATION FOUNDATION 727

APPENDIX A: EXERCISE SOLUTIONS 779

INDEX 827

Chapter 14 Code Download
Chapter 13 Code Download
Chapter 16 Code Download
Chapter 17 Code Download
Chapter 18 Code Download
Chapter 19 Code Download
Chapter 20 Code Download
ReadMe Download
Chapter 21 Code Download
Chapter 22 Code Download
Chapter 23 Code Download
Chapter 24 Code Download
Chapter 25 Code Download
Chapter 26 Code Download
Appendix Download
Chapter 3 Code Download
Chapter 4 Code Download
Chapter 5 Code Download
Chapter 6 Code Download
Chapter 7 Code Download
Chapter 8 Code Download
Chapter 9 Code Download
Chapter 10 Code Download
Chapter 12 Code Download
Chapter 11 Code Download
Chapter 15 Code Download
ChapterPageDetailsDatePrint Run
346Text Correction,CURRENTLY READS:
The *, %, and / operators have equal highest precedence here, followed by + and finally +=. The precedence in the exercise can be illustrated using parentheses as follows:
resultVar += (var1 * var2) + (var3 % (var4 / var5));
Or:
resultVar += (var * var2) + ((var3 % var4) / var5));
The result is the same in both cases
SHOULD READ:
By considering operator precedence, list the steps involved in the computation of the following expression:
resultVar += var1 * var2 + var3 % var4 / var5;
10/02/14
173Text Correction,5th Paragraph:
Currently reads:
otherwise, you need to use the fully qualified name of this object,
System.Windows.Forms.Button
Should read:
otherwise, you need to use the fully qualified name of this object,
System.Windows.Controls.Button
10/02/14
185Error in Code,CURRENTLY READS:
  class MyClass {     MyClass()    {       // Destructor body.    } } 

SHOULD READ:
 class MyClass {    ~MyClass()    {       // Destructor body.    } } 
02/19/2013
13327Text correction: Error in code under Expanding and Using CardLib,namespace Ch13CardLib
{
public event EventHandler LastCardDrawn;


Should read:

namespace Ch13CardLib
{
public class Deck : ICloneable
{
public event EventHandler LastCardDrawn;
4/15/14
16443Text correction: Error in code,The first line of code under step 7, public CardControl(Card card)
should read:
public CardControl(CardLib.Card card)
2/11/14
383Error in Code,In the code after the paragraph that starts �The XAML in this example��:

Currently reads:
 <Button Content= Hello World          HorizontalAlignment= Left          Margin= 220,151,0,0                      VerticalAlignment= Top  Width= 75 /> 


Should read:
 <Button HorizontalAlignment= Left          Margin= 220,151,0,0          VerticalAlignment= Top          Width= 75 >Hello World 
10/9/2013
17481Text correction: Typo in exercise,In step 5, Add a new enemy to the project...
should read Add a new enum to the project...
2/11/14
22650Text correction: Error in code,Under step 4, the 4th line of code, document.LoadbooksFile); should read:
document.Load(booksFile);
2/11/14
780Error in Code,Chapter 4 Solutions Exercise 2.

CURRENTLY READS:
 if ((var1 > 10) && (var2 > 10)) { numdersOK = true; } 

SHOULD READ:
 if ((var1 > 10) ^ (var2 > 10)) { numdersOK = true; } 
02/19/2013
779Text Correction,CURRENTLY READS:
N/A
SHOULD READ:
The *, %, and / operators have equal highest precedence here, followed by + and finally +=. The precedence in the exercise can be illustrated using parentheses as follows:
resultVar += (var1 * var2) + (var3 % (var4 / var5));
10/02/14