Sams Teach Yourself Visual C# 2010 in 24 Hours: Complete Starter Kit [NOOK Book]

Overview

C# has quickly established itself as one of the world's most widely used programming languages. The newest version, Visual C# 2010, includes several important new features, including Silverlight, the Entity Framework, tighter integration with version 4.0 of the .NET Framework, and full support for programming Windows 7 and Office. The proven Sams Teach Yourself method will help all newcomers to C# 2010 get up to speed quickly, no matter whether you've had experience with previous versions of Visual C# or not. You...

See more details below
Sams Teach Yourself Visual C# 2010 in 24 Hours: Complete Starter Kit

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

C# has quickly established itself as one of the world's most widely used programming languages. The newest version, Visual C# 2010, includes several important new features, including Silverlight, the Entity Framework, tighter integration with version 4.0 of the .NET Framework, and full support for programming Windows 7 and Office. The proven Sams Teach Yourself method will help all newcomers to C# 2010 get up to speed quickly, no matter whether you've had experience with previous versions of Visual C# or not. You are taken step by step through the process of software development, learning elements as you build a sample application so that the material is framed in a real world approach. The accompanying DVD contains Visual C# 2010 Express Edition, and the companion Web site contains all the code and exercises from the book.

 

  • Step-by-step instructions carefully walk you through the most common tasks
  • Q & As, quizzes, and exercises at the end of each chapter help you test your knowledge
  • Notes and tips point out shortcuts and solutions
  • The companion DVD contains Visual C# 2010 Express Edition - everything you need to get started programming in C#
Read More Show Less

Product Details

  • ISBN-13: 9780672331671
  • Publisher: Pearson Education
  • Publication date: 7/22/2010
  • Series: Sams Teach Yourself Series
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 560
  • File size: 22 MB
  • Note: This product may take a few minutes to download.

Meet the Author

Scott Dorman has been designated by Microsoft as a C# Most Valued Professional in recognition for his many contributions to the C# community. He has been working with computers professionally since 1993, and with .NET and C# since 2001. Currently, Scott's primary focus is developing commercial software applications using Microsoft .NET technologies. Scott runs a software architecture focused user group, speaks extensively, including at Microsoft TechEd and community sponsored code camps, and contributes regularly to online communities such as The Code Project and StackOverflow. Scott maintains a .NET Framework and C# focused blog at http://geekswithblogs.com/sdorman.
Read More Show Less

Table of Contents

Introduction     1

 

PART I:  C# FUNDAMENTALS

Hour 1  The .NET Framework and C#     7

The .NET Framework     7

The C# Language     17

Visual Studio 2010     24

Writing Your First Program     27

Q&A     31

Workshop     32

Hour 2  Understanding C# Types     35

Types     36

Predefined Types     37

Operators     47

Default Values     53

Null and Nullable Types     53

Casting and Conversion     55

Q&A     59

Workshop     60

Hour 3  Understanding Classes and Objects the C# Way 63

Object-Oriented Programming     64

Component-Oriented Programming     65

Classes in C#     65

Scope and Declaration Space 66

Nested Classes     85

Partial Classes     86

Static Classes     86

Object Initializers     88

Q&A     89

Workshop     90

Hour 4  Inheritance, Interfaces, and Abstract Classes      93

Inheritance and Polymorphism     93

Abstract Classes and Members     103

Interfaces     105

Q&A     109

Workshop     111

Hour 5  Creating Enumerated Types and Structures     113

Enumerated Types     114

Structures     119

Q&A     127

Workshop     127

Hour 6  Events and Event Handling     131

Understanding Events     132

Subscribing and Unsubscribing     132

Publishing an Event     136

Raising an Event     139

Q&A     141

Workshop     142

 

PART II:  PROGRAMMING IN C#

Hour 7  Controlling Program Flow     147

Selection Statements     148

Iteration Statements     153

Jump Statements     159

Q&A     162

Workshop     163

Hour 8  Using Strings and Regular Expressions     167

Strings     168

Mutable Strings Using StringBuilder     177

Type Formatting     178

Regular Expressions     187

Q&A     190

Workshop     191

Hour 9  Working with Arrays and Collections     195

Arrays     196

Indexers     200

Generic Collections     203

Collection Initializers     217

Collection Interfaces     219

Enumerable Objects and Iterators     220

Q&A     223

Workshop     224

Hour 10  Handling Errors Using Exceptions     227

Understanding Exceptions     228

Throwing Exceptions     231

Handling Exceptions     232

Rethrowing Caught Exceptions     239

Overflow and Integer Arithmetic     241

Q&A     243

Workshop     243

Hour 11  Understanding Generics     245

Why You Should Use Generics     246

Using Generic Methods     253

Creating Generic Classes     254

Combining Generics and Arrays     257

Working with Tuples     261

Q&A     263

Workshop     264

Hour 12  Understanding Query Expressions     267

Introducing LINQ     268

Standard Query Operator Methods     279

Lambdas     280

Deferred Execution     283

Q&A     284

Workshop     285

 

PART III:  WORKING WITH DATA

Hour 13  Using Files and Streams     289

Files and Directories     290

Reading and Writing Data     300

Q&A     307

Workshop     308

Hour 14  Working with XML     311

Understanding the XML DOM     312

Using LINQ to XML     313

Selecting and Querying XML     319

Modifying XML     323

Q&A     326

Workshop     326

Hour 15  Working with Databases     329

Understanding ADO.NET     330

Understanding LINQ to ADO.NET     333

Q&A     342

Workshop     343

 

PART IV:  BUILDING AN APPLICATION USING VISUAL STUDIO

Hour 16  Debugging in Visual Studio     347

Commenting Your Code     348

Compiler and Runtime Errors     349

Debugging in Visual Studio     350

Visualizing Data     359

Q&A     361

Workshop     361

Hour 17  Building a Windows Application     363

Understanding WPF     364

Creating a WPF Application     370

Styling the Layout     379

Q&A     382

Workshop     382

Hour 18  Using Data Binding and Validation     385

Understanding Data Binding     386

Converting Data     390

Binding to Collections     395

Working with Data Templates     399

Validating Data     400

Q&A     404

Workshop     405

Hour 19  Building a Web Application     407

Understanding Web Application Architecture     408

Working with ASP.NET     408

Creating a Web Application     411

Understanding Data Validation     420

Q&A     423

Workshop     424

 

PART V:  DIVING DEEPER

Hour 20  Programming with Attributes     427

Understanding Attributes     428

Working with the Common Attributes     430

Using Custom Attributes     433

Accessing Attributes at Runtime     434

Q&A     436

Workshop     436

Hour 21  Dynamic Types and Language Interoperability     439

Using Dynamic Types     439

Understanding the DLR     444

Interoperating with COM     447

Reflection Interoperability     448

Q&A     449

Workshop     450

Hour 22  Memory Organization and Garbage Collection     451

Memory Organization     452

Garbage Collection     452

Understanding IDisposable     453

Using the Dispose Pattern     455

Declaring and Using Finalizers     456

Q&A     458

Workshop     459

Hour 23  Understanding Threads, Concurrency, and Parallelism     461

Understanding Threads and Threading     462

Concurrency and Synchronization     463

Understanding the Task Parallel Library     467

Working with Parallel LINQ (PLINQ)     472

Potential Pitfalls     473

Q&A     475

Workshop     476

Hour 24  Next Steps: Silverlight, PowerShell, and Entity Framework     479

Understanding the Entity Framework     479

Introducing PowerShell     482

Silverlight     483

Index     485

 

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Posted December 8, 2010

    I Also Recommend:

    Not Recommended for Beginners

    I purchased this book for two reasons: 1. I have read through other Sams Teach Yourself in 24 Hours books with success. 2. The preface stated this book was for beginners. Which is exactly what I need when it comes to C# programmer and .NET. I am an experienced Visual Basic, HTML, JavaScript and ASP programmer. I have been programming for about five years but when it comes to C#, Visual Studio and the .NET framework I consider myself an abosulte newby. I needed a book written for the first time programmer and when I bought this one I was led to believe it was the one. The book teaches you some concepts in each hour and has you apply what you've learned through excercies as you move along in each hour. The idea is great but happens when something goes wrong? The program I wrote has errors, the outcome doesn't match the image in the book. The book doesn't show all the source code. What can I do? After trying to get through the third hour of the book (six hours later) I finally closed the book and went back to the book store. I purchased Murach's C# 2010. I am over 100 pages through Murach's book and I couldn't be happier with what I have learned and applied in Visual Studio. Sams book may be good for experienced programmers but I wouldn't recommend it for beginners. It seems the writer has no idea what a beginner is.

    I found the code on the publishers site and am now working at this book again, giving a second chance after gaining knowledge from Murach's C# 2010 book. I will update after further review. Hopefully it becomes more clear.

    Was this review helpful? Yes  No   Report this review
  • Posted October 14, 2010

    more from this reviewer

    Excellent book, well written and clear

    The material is organized perfection for me, I have coding experience but am new to C#. This book is working great.

    The eBook does not come with the CD but all the code is available from the publishers web site and Visual Studio 2010, C# are downloadable.

    Was this review helpful? Yes  No   Report this review
  • Posted August 22, 2010

    Great Book but big issue for nook readers

    So I purchased this book to learn more about C# and the big loss is when you purchase the digital copy for $3.50 cheaper you do not get the DVD with all the trainings on it. If you are offering this with out the software this should be a lot cheaper then selling it with.

    My hope is to contact the writer in hopes to receive the DVD if not I will return it.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)