Wiley
Wiley.com
Print this page Share

Beginning Visual C# 2012 Programming

ISBN: 978-1-118-31441-8
912 pages
December 2012
Beginning Visual C# 2012 Programming (1118314417) cover image
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.

See More

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

See More

Karli Watson is an author and IT contractor in London.

Jacob Vibe Hammer is a software architect and developer at Kamstrup A/S, Denmark. He has coauthored several books.

Jon D. Reid is the director of systems engineering at Indigo Biosystems, Inc.

Morgan Skinner joined Microsoft in 2001.

Daniel Kemper is a software engineer specializing in reporting and rich client technologies.

Christian Nagel is a Microsoft Regional Director and Microsoft MVP, an associate of thinktecture, and founder of CN innovation.

See More
Download TitleSizeDownload
ReadMe 2.37 KB Click to Download
Chapter 3 Code 6.60 KB Click to Download
Chapter 4 Code 20.23 KB Click to Download
Chapter 5 Code 20.00 KB Click to Download
Chapter 6 Code 23.72 KB Click to Download
Chapter 7 Code 18.44 KB Click to Download
Chapter 8 Code 8.75 KB Click to Download
Chapter 9 Code 13.47 KB Click to Download
Chapter 10 Code 15.43 KB Click to Download
Chapter 11 Code 38.41 KB Click to Download
Chapter 12 Code 33.60 KB Click to Download
Chapter 13 Code 29.20 KB Click to Download
Chapter 14 Code 32.50 KB Click to Download
Chapter 15 Code 66.44 KB Click to Download
Chapter 16 Code 76.64 KB Click to Download
Chapter 17 Code 418.19 KB Click to Download
Chapter 18 Code 253.73 KB Click to Download
Chapter 19 Code 28.80 MB Click to Download
Chapter 20 Code 2.80 MB Click to Download
Chapter 21 Code 34.63 KB Click to Download
Chapter 22 Code 129.44 KB Click to Download
Chapter 23 Code 195.68 KB Click to Download
Chapter 24 Code 2.70 MB Click to Download
Chapter 25 Code 770.58 KB Click to Download
Chapter 26 Code 175.62 KB Click to Download
Appendix 60 bytes 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
3 46 Text 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
173 Text 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
185 Error in Code
CURRENTLY READS:
 class MyClass
{
    MyClass()
   {
      // Destructor body.
   }
}

SHOULD READ:
class MyClass
{
   ~MyClass()
   {
      // Destructor body.
   }
}
02/19/2013
13 327 Text 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
16 443 Text 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
383 Error 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
17 481 Text 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
22 650 Text correction: Error in code
Under step 4, the 4th line of code, document.LoadbooksFile); should read:
document.Load(booksFile);
2/11/14
780 Error 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
779 Text 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
See More

Related Titles

Back to Top