9780596003395

C# Cookbook

Stephen Teilhet; Jay Hilyard

ISBN 10: 0596003390 / 0-596-00339-0
ISBN 13: 9780596003395
Publisher: O'Reilly Media
Publication Date: 2003
Binding: Softcover
Editorial Reviews for this title:
Synopsis:

Easy to learn and use, the C# language is targeted at developers for Microsoft's .NET platform who've worked with a C-like language before, such as C, C++, or Java. There's no shortage of excellent tutorials and documentation to help new developers get a handle on the language, such as O'Reilly's Learning C# or Programming C#. But when you need practical answers to the day-to-day questions you run up against, a tutorial isn't going to do the trick. The C# Cookbook gets straight to the heart of the problem with code recipes collected especially for developers working on the .NET platform.

The C# Cookbook offers a definitive collection of solutions and examples for this new programming language. Recipes range from simple tasks to the more complex, and are organized with respect to the types of problems you'll need to solve as you progress in your experience as a C# programmer. Nearly every recipe contains a complete, documented code sample showing you how to solve the specific problem, as well as a discussion of how the underlying technology works and a discussion of alternatives, limitations, and other considerations where appropriate.

The recipes in the C# Cookbook are organized into seventeen chapters, each of which focuses on a particular topic in creating C# solutions. Among the topics covered, you'll find:

  • Numeric data types in C#
  • Strings and characters
  • Classes and structures
  • Exception handling
  • Delegates and events
  • Regular expressions
  • Data structures and algorithms
  • Networking
  • Security
  • Unsafe Code
You don't need to be an experienced C# or .NET developer to use this book. The C# Cookbook is designed for users of all levels with recipes targeted at the real-world developer who needs to solve problems now, not learn lots of theory first. With this guide, all developers will be able to learn and improve their mastery of both the language and the .NET Framework Class Libraries.

Review:
The O'Reilly Cookbook series, with its to-the-point but illuminating coverage of programming subjects, meets the challenge of explaining how to write software as well as anything else on the market. When you're facing a coding problem--particularly in a language you're new to or haven't used in a while--and know there must be a proven way to solve it, the right Cookbook can often get you going in a hurry. C# Cookbook applies the formula to the language of Microsoft .NET, and is an addition to the line that more than a few programmers will appreciate.

Don't count on this book to solve big tasks for you. "I need some C# software that integrates with Avaya telephone switches and Siemens databases...:" No. Rather, this book shows you how to do the little jobs (converting an array to a delimited string, monitoring the event log, creating a bounded hashtable, and so on) that can stand in the way of prompt completion of a project. What's more, the coverage isn't limited to code samples. Stephen Teilhet and Jay Hilyard take advantage of the Cookbook series' Problem-Solution-Discussion format to teach you a thing or two about C#. You'll refer to this book often for quick answers and explanations. --David Wall

Topics covered: How to solve small but non-trivial problems in the C# programming language. Each of 17 chapters covers a major area of C# functionality--networking, regular expressions, filesystem, security, and so on--and contains a dozen or two entries on how best to solve programming problems.

Review

Review:
350 Solutions for C# Programmers

Book Description

Editorial reviews may belong to another edition of this title.
 

C# Cookbook: Search Results

1.

Stephen Teilhet; Jay Hilyard
ISBN 10: 0596003390
ISBN 13: 9780596003395
Bookseller: Ebooksweb COM LLC (Bensalem, PA, U.S.A.)
Bookseller Rating: 5-star rating
Quantity Available: 1

Book Description: O'Reilly Media 2003-04-01, 2003. Paperback. Book Condition: New. 0596003390. Bookseller Inventory # Z0596003390ZN

Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

Add Book to Shopping Basket
Price: US$ 45.83
Convert Currency
Shipping: FREE Within U.S.A.
2.

Stephen Teilhet; Jay Hilyard
ISBN 10: 0596003390
ISBN 13: 9780596003395
Bookseller: Book Deals (Lewiston, NY, U.S.A.)
Bookseller Rating: 3-star rating
Quantity Available: 1

Book Description: O'Reilly Media, 2003. Book Condition: New. Brand New, Unread Copy in Perfect Condition. A+ Customer Service! Summary: Preface1. Numbers1.1 Determining Approximate Equality Between a Fraction and Floating-Point Value1.2 Converting Degrees to Radians1.3 Converting Radians to Degrees1.4 Using the Bitwise Complement Operator with Various Data Types1.5 Test for an Even or Odd Value1.6 Obtaining the Most- or Least-Significant Bits of a Number1.7 Converting a Number in Another Base to Base101.8 Determining Whether a String Is a Valid Number1.9 Rounding a Floating-Point Value1.10 Different Rounding Algorithms1.11 Converting Celsius to Fahrenheit1.12 Converting Fahrenheit to Celsius1.13 Safely Performing a Narrowing Numeric Cast1.14 Finding the Length of Any Three Sides of a Right Triangle1.15 Finding the Angles of a Right Triangle2. Strings and Characters2.1 Determining the Kind of Character2.2 Determining Whether a Character Is Within a Specified Range2.3 Controlling Case Sensitivity when Comparing Two Characters2.4 Finding All Occurrences of a Character Within a String2.5 Finding the Location of All Occurrences of a String WithinAnother String2.6 The Poor Man''s Tokenizer2.7 Controlling Case Sensitivity when Comparing Two Strings2.8 Comparing a String to the Beginning or End of a Second String2.9 Inserting Text into a String2.10 Removing or Replacing Characters Within a String2.11 Encoding Binary Data as Base642.12 Decoding a Base64-Encoded Binary2.13 Converting a String Returned as a Byte[ ] Back into a String2.14 Passing a String to a Method that Accepts Only a Byte[ ]2.15 Converting Strings to Their Equivalent Value Type2.16 Formatting Data in Strings2.17 Creating a Delimited String2.18 Extracting Items from a Delimited String2.19 Setting the Maximum Number of Characters a String Can Contain2.20 Iterating Over Each Character in a String2.21 Improving String Comparison Performance2.22 Improving StringBuilder Performance2.23 Pruning Characters from the Head and/or Tail of a String3. Classes and Structures3.1 Creating Union-Type Structures3.2 Allowing a Type to Represent Itself as a String3.3 Converting a String Representation of an Object into an Actual Object3.4 Polymorphism via Concrete or Abstract Base Classes3.5 Making a Type Sortable3.6 Making a Type Searchable3.7 Indirectly Overloading the +=, -=, /=, and *= Operators3.8 Indirectly Overloading the &, , and ?: Operators3.9 Improving the Performance of a Structure''s Equals Method3.10 Turning Bits On or Off3.11 Making Error-Free Expressions3.12 Minimizing (Reducing) Your Boolean Logic3.13 Converting Between Simple Types in a Language Agnostic Manner3.14 Determining Whether to Use the Cast Operator, the as Operator, or the is Operator3.15 Casting with the as Operator3.16 Determining a Variable''s Type with the is Operator3.17 Polymorphism via Interfaces3.18 Calling the Same Method on Multiple Object Types3.19 Adding a Notification Callback Using an Interface3.20 Using Multiple Entry Points to Version an Application3.21 Preventing the Creation of an Only Partially Initialized Object3.22 Returning Multiple Items from a Method3.23 Parsing Command-Line Parameters3.24 Retrofitting a Class to Interoperate with COM3.25 Initializing a Constant Field at Runtime3.26 Writing Code that Is Compatible with the Widest Rangeof Managed Languages3.27 Implementing Nested foreach Functionality in a Class3.28 Building Cloneable Classes3.29 Assuring an Object''s Disposal3.30 Releasing a COM Object Through Managed Code3.31 Creating an Object Cache3.32 The Single Instance Object3.33 Choosing a Serializer3.34 Creating Custom Enumerators3.35 Rolling Back Object Changes3.36 Disposing of Unmanaged Resources3.37 Determining Where Boxing and Unboxing Occur4. Enumerations4.1 Displaying an Enumeration Value as a String4.2 Converting Plain Text to an Equivalent Enumeration Value4.3 Testing for a Valid Enumeration Value4.4 Testing for a Valid Enumeration of Flags4.5 Using Enumerated Members in a Bitmask4.6 Determining Whether One or More Enumeration Flag. Bookseller Inventory # ABE_book_new_0596003390

Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

Add Book to Shopping Basket
Price: US$ 70.78
Convert Currency
Shipping: FREE Within U.S.A.
3.

Stephen Teilhet; Jay Hilyard
ISBN 10: 0596003390
ISBN 13: 9780596003395
Bookseller: ExtremelyReliable (Richmond, TX, U.S.A.)
Bookseller Rating: 5-star rating
Quantity Available: 1

Book Description: O'Reilly Media. Paperback. Book Condition: New. 1st. Bookseller Inventory # DADAX0596003390

Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

Add Book to Shopping Basket
Price: US$ 66.81
Convert Currency
Shipping: US$ 3.99
Within U.S.A.
4.

Stephen Teilhet; Jay Hilyard
ISBN 10: 0596003390
ISBN 13: 9780596003395
Bookseller: Murray Media (MIAMI SHORES, FL, U.S.A.)
Bookseller Rating: 5-star rating
Quantity Available: 3

Book Description: O'Reilly Media. Paperback. Book Condition: New. Bookseller Inventory # P110596003390

Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

Add Book to Shopping Basket
Price: US$ 73.91
Convert Currency
Shipping: US$ 3.99
Within U.S.A.
5.

Stephen Teilhet; Jay Hilyard
ISBN 10: 0596003390
ISBN 13: 9780596003395
Bookseller: Castle Rock (Amherst, NS, Canada)
Bookseller Rating: 5-star rating
Quantity Available: 1

Book Description: Book Condition: Brand New. Book Condition: Brand New * All orders are processed and shipped from Las Vegas, NV USA *. Bookseller Inventory # 97805960033951.0

Bookseller & Payment Information | More Books from this Seller | Ask Bookseller a Question

Add Book to Shopping Basket
Price: US$ 74.36
Convert Currency
Shipping: US$ 3.99
From Canada to U.S.A.
View All Listings for this Book