Essential C# 3.0: For .NET Framework 3.5 (2nd Edition)

Essential C# 3.0: For .NET Framework 3.5 (2nd Edition)

Mark Michaelis

Language: English

Pages: 880

ISBN: 0321533925

Format: PDF / Kindle (mobi) / ePub

Essential C# 3.0 is an extremely well-written and well-organized “no-fluff” guide to C# 3.0, which will appeal to programmers at all levels of experience with C#. This fully updated edition dives deep into the new features that are revolutionizing programming, with brand new chapters covering query expressions, lambda expressions, extension methods, collection interface extensions, standard query operators, and LINQ as a whole.


Author Mark Michaelis covers the C# language in depth, and each importantconstruct is illustrated with succinct, relevant code examples. (Complete code examples are available online.) Graphical “mind maps” at the beginning of each chapter show what material is covered and how each topic relates to the whole. Topics intended for beginners and advanced readers are clearly marked.


Following an introduction to C#, readers learn about 

  • C# primitive data types, value types, reference types, type conversions, and arrays
  • Operators and control flow, loops, conditional logic, and sequential programming
  • Methods, parameters, exception handling, and structured programming
  • Classes, inheritance, structures, interfaces, and object-oriented programming
  • Well-formed types, operator overloading, namespaces, and garbage collection
  • Generics, collections, custom collections, and iterators
  • Delegates and lambda expressions
  • Standard query operators and query expressions
  • LINQ: language integrated query
  • Reflection, attributes, and declarative programming
  • Threading, synchronization, and multithreaded patterns
  • Interoperability and unsafe code
  • The Common Language Infrastructure that underlies C# 

Whether you are just starting out as a programmer, are an experienced developer looking to learn C#, or are a seasoned C# programmer interested in learning the new features of C# 3.0, Essential C# 3.0 gives you just what you need to quickly get up and running writing C# applications.

Original Wisdom: Stories of an Ancient Way of Knowing

The International Bank of Bob: Connecting Our Worlds One $25 Kiva Loan at a Time

The Web Design Book Volume 6

The Business of Android Apps Development: Making and Marketing Apps that Succeed on Google Play, Amazon Appstore and More

World Bank and Urban Development: From Projects to Policy (Routledge Studies in Development and Society)

Async JavaScript
















is displayed (see Output 1.6). Listing 1.16: Swapping the Indexed Placeholders and Corresponding Variables System.Console.WriteLine("Your full name is {1}, {0}", firstName, lastName); OUTPUT 1.6: Hey you! Enter your first name: Inigo Enter your last name: Montoya Your full name is Montoya, Inigo In addition to not having the placeholders appear consecutively within the format string, it is possible to use the same placeholder multiple times within a format string. Furthermore, it is possible to

void Nontype 52 Categories of Types 55 Value Types 55 Reference Types 56 Nullable Modifier 57 Conversions between Data Types Explicit Cast 59 Implicit Cast 62 Type Conversion without Casting Arrays 58 62 65 Declaring an Array 65 Instantiating and Assigning Arrays Using an Array 70 Strings as Arrays 76 Common Errors 78 66 3 Operators and Control Flow 83 Operators 84 Plus and Minus Unary Operators (+, –) 84 Arithmetic Binary Operators (+, –, *, /, %) 85 Parenthesis Operator 92

going from an int type to a long type, there is no loss of precision and there will be no fundamental change in the value of the type. In these cases, code needs only to specify the assignment operator and the conversion is implicit. In other words, the compiler is able to determine that such a conversion will work correctly. The code in Listing 2.24 converts from an int to a long by simply using the assignment operator. Listing 2.24: Not Using the Cast Operator for an Implicit Cast int intNumber

Again, Listing 3.59 shows the tic-tac-toe program as an example. Listing 3.59: A #region and #endregion Preprocessor Directive ... #region Display Tic-tac-toe Board #if CSHARP2 System.Console.Clear(); #endif // Display the current board; border = 0; // set the first border (border[0] = "|") // Display the top line of dashes. // ("\n---+---+---\n") System.Console.Write(borders[2]); foreach (char cell in cells) { // Write out a cell value and the border that comes after it. System.Console.Write("

Chapter 4: Methods and Parameters TABLE 4.1: Common Namespaces (Continued) Namespace Description System.Web A collection of types that enable browser-toserver communication, generally over HTTP. The functionality within this namespace is used to support a .NET technology called ASP.NET. System.Web.Services Contains types that send and retrieve data over HTTP using the Simple Object Access Protocol (SOAP). System.Windows.Forms Includes types for creating rich user interfaces and the

Download sample