C# Cookbook
Home > Computing and Information Technology > Operating systems > Microsoft (Windows) operating systems > C# Cookbook
C# Cookbook

C# Cookbook


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

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.

Table of Contents:
Preface; 1. Numbers; 1.1 Determining Approximate Equality Between a Fraction and Floating-Point Value; 1.2 Converting Degrees to Radians; 1.3 Converting Radians to Degrees; 1.4 Using the Bitwise Complement Operator with Various Data Types; 1.5 Test for an Even or Odd Value; 1.6 Obtaining the Most- or Least-Significant Bits of a Number; 1.7 Converting a Number in Another Base to Base10; 1.8 Determining Whether a String Is a Valid Number; 1.9 Rounding a Floating-Point Value; 1.10 Different Rounding; Algorithms; 1.11 Converting Celsius to Fahrenheit; 1.12 Converting Fahrenheit to Celsius; 1.13 Safely Performing a Narrowing Numeric Cast; 1.14 Finding the Length of Any Three Sides of a Right Triangle; 1.15 Finding the Angles of a Right Triangle; 2. Strings and Characters; 2.1 Determining the Kind of Character; 2.2 Determining Whether a Character Is Within a Specified Range; 2.3 Controlling Case Sensitivity when Comparing Two Characters; 2.4 Finding All Occurrences of a Character Within a String; 2.5 Finding the Location of All Occurrences of a String Within Another String; 2.6 The Poor Man's Tokenizer; 2.7 Controlling Case Sensitivity when Comparing Two Strings; 2.8 Comparing a String to the Beginning or End of a Second String; 2.9 Inserting Text into a String; 2.10 Removing or Replacing Characters Within a String; 2.11 Encoding Binary Data as Base64; 2.12 Decoding a Base64-Encoded Binary; 2.13 Converting a String Returned as a Byte[ ] Back into a String; 2.14 Passing a String to a Method that Accepts Only a Byte[ ]; 2.15 Converting Strings to Their Equivalent Value Type; 2.16 Formatting Data in Strings; 2.17 Creating a Delimited String; 2.18 Extracting Items from a Delimited String; 2.19 Setting the Maximum Number of Characters a String Can Contain; 2.20 Iterating Over Each Character in a String; 2.21 Improving String Comparison Performance; 2.22 Improving StringBuilder Performance; 2.23 Pruning Characters from the Head and/or Tail of a String; 3. Classes and Structures; 3.1 Creating Union-Type Structures; 3.2 Allowing a Type to Represent Itself as a String; 3.3 Converting a String Representation of an Object into an Actual Object; 3.4 Polymorphism via Concrete or Abstract Base Classes; 3.5 Making a Type Sortable; 3.6 Making a Type Searchable; 3.7 Indirectly Overloading the +=, -=, /=, and x= Operators; 3.8 Indirectly Overloading the &&, ||, and ?: Operators; 3.9 Improving the Performance of a Structure's Equals Method; 3.10 Turning Bits On or Off; 3.11 Making Error-Free Expressions; 3.12 Minimizing (Reducing) Your Boolean Logic; 3.13 Converting Between Simple Types in a Language Agnostic Manner; 3.14 Determining Whether to Use the Cast Operator, the as Operator, or the is Operator; 3.15 Casting with the as Operator; 3.16 Determining a Variable's Type with the is Operator; 3.17 Polymorphism via Interfaces; 3.18 Calling the Same Method on Multiple Object Types; 3.19 Adding a Notification Callback Using an Interface; 3.20 Using Multiple Entry Points to Version an

About the Author :
Stephen Teilhet earned a degree in electrical engineering but soon afterwards began writing software for the Windows platform. For the last eight years, he has worked for several consulting firms on a wide range of projects, specializing in Visual Basic, Visual C++, MTS, COM, MSMQ, and SQL Server. Stephen currently works for Compuware Numega Labs in Nashua, New Hampshire, where he is immersed in the Microsoft .NET technologies.


Best Sellers


Product Details
  • ISBN-13: 9780596003395
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Height: 240 mm
  • Returnable: N
  • Weight: 1180 gr
  • ISBN-10: 0596003390
  • Publisher Date: 24 Feb 2004
  • Binding: Paperback
  • Language: English
  • Spine Width: 38 mm
  • Width: 180 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
C# Cookbook
O'Reilly Media -
C# Cookbook
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

C# Cookbook

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!