توضیحاتی در مورد کتاب Programming In C With Visual Stdio 2010 Lab Manual
نام کتاب : Programming In C With Visual Stdio 2010 Lab Manual
عنوان ترجمه شده به فارسی : راهنمای آزمایشگاه برنامه نویسی در سی با ویژوال استودیو 2010
سری :
ناشر : Microsoft press
سال نشر : 2010
تعداد صفحات : 756
زبان کتاب : English
فرمت کتاب : pdf
حجم کتاب : 5 مگابایت
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
فهرست مطالب :
Lab Instructions
......Page 1
Module 1:
Lab Instructions: Introducing C# and the .NET Framework......Page 3
Lab: Introducing C# and the .NET Framework......Page 4
Lab Scenario......Page 6
Exercise 1: Building a Simple Console Application......Page 7
Exercise 2: Building a WPF Application......Page 12
Exercise 3: Verifying the Application......Page 16
Exercise 4: Generating Documentation for an Application......Page 19
Module 2:
Lab Instructions: Using C# Programming Constructs......Page 22
Lab: Using C# Programming Constructs......Page 23
Exercise 1: Calculating Square Roots with Improved Accuracy......Page 25
Exercise 2: Converting Integer Numeric Data to Binary......Page 33
Exercise 3: Multiplying Matrices......Page 37
Module 3:
Lab Instructions: Declaring and Calling Methods......Page 44
Lab: Declaring and Calling Methods......Page 45
Exercise 1: Calculating the Greatest Common Divisor of Two Integers by Using Euclid’s Algorithm......Page 47
Exercise 2: Calculating the GCD of Three, Four, or Five Integers......Page 51
Exercise 3: Comparing the Efficiency of Two Algorithms......Page 55
Exercise 4: Displaying Results Graphically......Page 61
Exercise 5: Solving Simultaneous Equations (optional)......Page 64
Module 4:
Lab Instructions: Handling Exceptions......Page 69
Lab: Handling Exceptions......Page 70
Exercise 1: Making a Method Fail-Safe......Page 72
Exercise 2: Detecting an Exceptional Condition......Page 76
Exercise 3: Checking for Numeric Overflow......Page 80
Module 5: Lab Instructions: Reading and Writing Files......Page 82
Lab: Reading and Writing Files......Page 83
Exercise 1: Building a Simple File Editor......Page 85
Exercise 2: Making the Editor XML Aware......Page 91
Module 6: Lab Instructions: Creating New Types......Page 95
Lab: Creating New Types......Page 96
Exercise 1: Using Enumerations to Specify Domains......Page 98
Exercise 2: Using a Struct to Model a Simple Type......Page 102
Exercise 3: Using a Class to Model a More Complex Type......Page 104
Exercise 4: Using a Nullable Struct......Page 113
Module 7:
Lab Instructions: Encapsulating Data and Methods......Page 117
Lab: Encapsulating Data and Methods......Page 118
Exercise 1: Hiding Data Members......Page 120
Exercise 2: Using Static Members to Share Data......Page 123
Exercise 3: Implementing an Extension Method......Page 127
Module 8:
Lab Instructions: Inheriting from Classes and Implementing Interfaces......Page 130
Lab: Inheriting from Classes and Implementing Interfaces......Page 131
Exercise 1: Defining an Interface......Page 133
Exercise 2: Implementing an Interface......Page 135
Exercise 3: Creating an Abstract Class......Page 141
Module 9:
Lab Instructions: Managing the Lifetime of Objects and Controlling Resources......Page 151
Lab: Managing the Lifetime of Objects and Controlling Resources......Page 152
Exercise 1: Implementing the IDisposable Interface......Page 154
Exercise 2: Managing Resources Used by an Object......Page 159
Module 10:
Lab Instructions: Encapsulating Data and Defining Overloaded Operators......Page 163
Lab A: Creating and Using Properties......Page 164
Lab Scenario......Page 166
Exercise 1: Defining Properties in an Interface......Page 167
Exercise 2: Implementing Properties in a Class......Page 168
Exercise 3: Using Properties Exposed by a Class......Page 171
Lab B: Creating and Using Indexers......Page 175
Lab Scenario......Page 177
Exercise 1: Implementing an Indexer to Access Bits in a Control Register......Page 178
Exercise 2: Using an Indexer Exposed by a Class......Page 180
Lab C: Overloading Operators......Page 184
Lab Scenario......Page 186
Exercise 1: Defining the Matrix and MatrixNotCompatibleException Types......Page 187
Exercise 2: Implementing Operators for the Matrix Type......Page 193
Exercise 3: Testing the Operators for the Matrix Type......Page 196
Module 11:
Lab Instructions: Decoupling Methods and Handling Events......Page 199
Lab: Decoupling Methods and Handling Events......Page 200
Lab Scenario......Page 202
Exercise 1: Raising and Handling Events......Page 203
Exercise 2: Using Lambda Expressions to Specify Code......Page 212
Module 12:
Lab Instructions: Using Collections and Building Generic Types......Page 219
Lab A: Using Collections......Page 220
Exercise 1: Optimizing a Method by Caching Data......Page 221
Lab B: Building Generic Types......Page 225
Lab Scenario......Page 227
Exercise 1: Defining a Generic Interface......Page 231
Exercise 2: Implementing a Generic Interface......Page 232
Exercise 3: Implementing a Test Harness for the BinaryTree Project......Page 238
Exercise 4: Implementing a Generic Method......Page 240
Module 13:
Lab Instructions: Building and Enumerating Custom Collection Classes......Page 244
Lab: Building and Enumerating CustomCollection Classes......Page 245
Exercise 1: Implementing the IList Interface......Page 247
Exercise 2: Implementing an Enumerator by Writing Code......Page 261
Exercise 3: Implementing an Enumerator by Using an Iterator......Page 271
Module 14:
Lab Instructions: Using LINQ to Query Data......Page 280
Lab: Using LINQ to Query Data......Page 281
Lab Scenario......Page 283
Exercise 1: Using the LINQ Query Operators......Page 284
Exercise 2: Building Dynamic LINQ Queries......Page 291
Module 15:
Lab Instructions: Integrating Visual C# Code with Dynamic Languages and COM Components......Page 305
Lab: Integrating Visual C# Code with Dynamic Languages and COM Components......Page 306
Exercise 1: Integrating Code Written by Using a Dynamic Language into a Visual C# Application......Page 308
Exercise 2: Using a COM Component from a Visual C# Application......Page 317
Module 1:
Lab Answer Key: Introducing C# and the .NET Framework......Page 327
Exercise 1: Building a Simple Console Application......Page 328
Exercise 2: Building a WPF Application......Page 335
Exercise 3: Verifying the Application......Page 340
Exercise 4: Generating Documentation for an Application......Page 344
Module 2:
Lab Answer Key: Using C# Programming Constructs......Page 348
Exercise 1: Calculating Square Roots with Improved Accuracy......Page 349
Exercise 2: Converting Integer Numeric Data to Binary......Page 361
Exercise 3: Multiplying Matrices......Page 369
Module 3:
Lab Answer Key: Declaring and Calling Methods......Page 379
Exercise 1: Calculating the Greatest Common Divisor of Two Integers by Using Euclid’s Algorithm......Page 380
Exercise 2: Calculating the GCD of Three, Four, or Five Integers......Page 386
Exercise 3: Comparing the Efficiency of Two Algorithms......Page 394
Exercise 4: Displaying Results Graphically......Page 405
Exercise 5: Solving Simultaneous Equations (optional)......Page 409
Module 4:
Lab Answer Key: Handling Exceptions......Page 416
Exercise 1: Making a Method Fail-Safe......Page 417
Exercise 2: Detecting an Exceptional Condition......Page 425
Exercise 3: Checking for Numeric Overflow......Page 431
Module 5:
Lab Answer Key: Reading and Writing Files......Page 433
Exercise 1: Building a Simple File Editor......Page 434
Exercise 2: Making the Editor XML Aware......Page 442
Module 6:
Lab Answer Key: Creating New Types......Page 449
Exercise 1: Using Enumerations to Specify Domains......Page 450
Exercise 2: Using a Struct to Model a Simple Type......Page 457
Exercise 3: Using a Class to Model a More Complex Type......Page 460
Exercise 4: Using a Nullable Struct......Page 473
Module 7:
Lab Answer Key: Encapsulating Data and Methods......Page 479
Exercise 1: Hiding Data Members......Page 480
Exercise 2: Using Static Members to Share Data......Page 485
Exercise 3: Implementing an Extension Method......Page 492
Module 8:
Lab Answer Key: Inheriting from Classes and Implementing Interfaces......Page 497
Exercise 1: Defining an Interface......Page 498
Exercise 2: Implementing an Interface......Page 501
Exercise 3: Creating an Abstract Class......Page 514
Module 9:
Lab Answer Key: Managing the Lifetime of Objects and Controlling Resources......Page 538
Exercise 1: Implementing the IDisposable Interface......Page 539
Exercise 2: Managing Resources Used by an Object......Page 551
Module 10:
Lab Answer Key: Encapsulating Data and Defining Overloaded Operators......Page 556
Exercise 1: Defining Properties in an Interface......Page 557
Exercise 2: Implementing Properties in a Class......Page 559
Exercise 3: Using Properties Exposed by a Class......Page 563
Exercise 1: Implementing an Indexer to Access Bits in a Control Register......Page 569
Exercise 2: Using an Indexer Exposed by a Class......Page 571
Exercise 1: Defining the Matrix and MatrixNotCompatibleException Types......Page 578
Exercise 2: Implementing Operators for the Matrix Type......Page 587
Exercise 3: Testing the Operators for the Matrix Type......Page 595
Module 11:
Lab Answer Key: Decoupling Methods and Handling Events......Page 600
Exercise 1: Raising and Handling Events......Page 601
Exercise 2: Using Lambda Expressions to Specify Code......Page 616
Module 12:
Lab Answer key: Using Collections and Building Generic Types......Page 628
Exercise 1: Optimizing a Method by Caching Data......Page 629
Exercise 1: Defining a Generic Interface......Page 635
Exercise 2: Implementing a Generic Interface......Page 637
Exercise 3: Implementing a Test Harness for the BinaryTree Project......Page 646
Exercise 4: Implementing a Generic Method......Page 649
Module 13:
Lab Answer Key: Building and Enumerating Custom Collection Classes......Page 653
Exercise 1: Implementing the IList Interface......Page 654
Exercise 2: Implementing an Enumerator by Writing Code......Page 671
Exercise 3: Implementing an Enumerator by Using an Iterator......Page 684
Module 14:
Lab Answer Key: Using LINQ to Query Data......Page 693
Exercise 1: Using the LINQ Query Operators......Page 694
Exercise 2: Building Dynamic LINQ Queries......Page 705
Module 15:
Lab Answer Key: Integrating Visual C# Code with Dynamic Languages and COM Components......Page 729
Exercise 1: Integrating Code Written by Using a Dynamic Language into a Visual C# Application......Page 730
Exercise 2: Using a COM Component from a Visual C# Application......Page 744