• Complain

Herbert Schildt - C# 3.0 the Complete Reference 3/E (Complete Reference Series)

Here you can read online Herbert Schildt - C# 3.0 the Complete Reference 3/E (Complete Reference Series) full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2008, publisher: McGraw-Hill Education Ltd, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    C# 3.0 the Complete Reference 3/E (Complete Reference Series)
  • Author:
  • Publisher:
    McGraw-Hill Education Ltd
  • Genre:
  • Year:
    2008
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

C# 3.0 the Complete Reference 3/E (Complete Reference Series): summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "C# 3.0 the Complete Reference 3/E (Complete Reference Series)" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Publishers Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.


The Most Comprehensive C# Resource Available

With its support for Language-Integrated Query (LINQ), C# 3.0 has revolutionized C# programming, and bestselling author Herb Schildt has updated and expanded his classic programming reference to cover it. Using carefully crafted explanations, insider tips, and hundreds of examples, this book presents in-depth coverage of all aspects of C#, including its keywords, syntax, and core libraries. Of course, details on the new C# 3.0 features, such as LINQ, lambda expressions, implicitly typed variables, and anonymous types are included.

Essential for every C# programmer, this comprehensive guide is written in the clear, crisp, uncompromising style that has made Herb the choice of millions worldwide. Whether you are a novice programmer or a seasoned pro, the answers to all of your C# questions can be found in this definitive resource.

Coverage includes:

  • Data types and operators
  • Control statements
  • Classes and objects
  • Constructors, destructors, and methods
  • Interfaces, arrays, enumerations, and structures
  • Method and operator overloading
  • Inheritance and virtual methods
  • Reflection and runtime type ID
  • Exception handling
  • Delegates, properties, events, and indexers
  • Attributes
  • Multithreading
  • Generics
  • LINQ (Language-Integrated Query)
  • Lambda expressions
  • Anonymous types
  • Extension methods
  • Implicitly typed variables
  • I/O, networking, and collections
  • The preprocessor and much, much more

Herbert Schildt: author's other books


Who wrote C# 3.0 the Complete Reference 3/E (Complete Reference Series)? Find out the surname, the name of the author of the book and a list of all author's works by series.

C# 3.0 the Complete Reference 3/E (Complete Reference Series) — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "C# 3.0 the Complete Reference 3/E (Complete Reference Series)" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
APPENDIX A
Documentation Comment Quick Reference

C# supports three types of comments. The first two are // and /* */. The third type is based on XML tags and is called a documentation comment. (The term XML comment is also commonly used.) A single-line documentation comment begins with ///. A multiline documentation comment begins with /** and ends with */. The lines after the /** can (but are not required to) start with a single *. If all subsequent lines in the multiline comment begin with a *, the * is ignored.

Documentation comments precede the declaration of such things as classes, namespaces, methods, properties, and events. Using documentation comments, you can embed information about your program into the program itself. When you compile the program, you can have the documentation comments placed into an XML file. Documentation comments can also be utilized by the IntelliSense feature of Visual Studio.

The XML Comment Tags

C# supports the XML documentation tags shown in . Most of the XML comment tags are readily understandable, and they work like all other XML tags with which most programmers are already familiar. However, the tag is more complicated than the others. A list contains two components: a list header and list items. The general form of a list header is shown here:


name
text

Here, text describes name. For a table, text is not used. The general form of a list item is shown next:


item-name
text

Here, text describes item-name. For bulleted or numbered lists or tables, item-name is not used. There can be multiple entries.

Tag

Description

code

Specifies the text specified by code as program code.

code

Specifies multiple lines of text specified by code as program code.

explanation

The text associated with explanation describes a code example.

explanation

Describes an exception. The exception is specified by name.

fname path = path [@tagName = "tagID "] />

Specifies a file that contains the XML comments for the current file. The file is specified by fname. The path to the tag, the tag name, and the tag ID are specified by path, tagName, and tagID, respectively.


list-header
list-items

Specifies a list. The type of the list is specified by type, which must be either bullet, number, or table.

text

Specifies a paragraph of text within another tag.

param-name>
explanation

Documents the parameter specified by param-name. The text associated with explanation describes the parameter.

Specifies that param-name is a parameter name.


explanation

Describes the permission setting associated with the class members specified by identifier. The text associated with explanation describes the permission settings.

explanation

The text specified by explanation is a general commentary often used to describe a type, such as a class or structure.

explanation

The text specified by explanation documents the return value of a method.

Declares a link to another element specified by identifier.

Declares a "see also" link to identifier.

explanation

The text specified by explanation is a general commentary often used to describe a method or other class member.


explanation

Documents the type parameter specified by param-name. The text associated with explanation describes the type parameter.

Specifies that param-name is the name of a type parameter.

explanation

The text specified by explanation documents a property.

TABLE A-1 The XML Comment Tags

Compiling Documentation Comments

To produce an XML file that contains the documentation comments, specify the /doc option. For example, to compile a file called DocTest.cs that contains XML comments, use this command line:

csc DocTest.cs /doc:DocTest.xml

To create an XML output file when using the Visual Studio 2008 IDE, you must activate the Properties page. Next, select Build. Then, check the XML Documentation File box and specify the name of the XML file.

An XML Documentation Example

Here is an example that demonstrates several documentation comments. It uses both the multiline and the single-line forms. As a point of interest, many programmers use a series of single-line documentation comments rather than a multiline comment even when a comment spans several lines. (Several of the comments in this example use this approach.) The advantage is that it clearly identifies each line in a longer documentation comment as being part of a documentation comment. This is, of course, a stylistic issue, but it is common practice.

// A documentation comment example.
using System;
/**
This is an example of multiline XML documentation.
The Test class demonstrates several tags.
*/
class Test {
///


/// Main is where execution begins.
///
static void Main() {
int sum;
sum = Summation(5);
Console.WriteLine("Summation of " + 5 + " is " + sum);
}
///
/// Summation returns the summation of its argument.
///
/// The value to be summed is passed in val.
///
///
///
/// The summation is returned as an int value.
///
///
static int Summation(int val) {
int result = 0;
for(int i=1; i <= val; i++)
result += i;
return result;
}
}

Assuming the preceding program is called XmlTest.cs, the following line will compile the program and produce a file called XmlTest.xml that contains the comments:

csc XmlTest.cs /doc:XmlTest.xml

After compiling, the following XML file is produced:


DocTest
This is an example of multiline XML documentation.
The Test class demonstrates several tags.


Main is where execution begins.
Summation returns the summation of its argument.
The value to be summed is passed in val.
The summation is returned as an int value.

Notice that each documented element is given a unique identifier. These identifiers can be used by other programs that use the XML documentation.

CHAPTER 1
The Creation of C#

C# is Microsofts premier language for .NET development. It leverages time-tested features with cutting-edge innovations and provides a highly usable, efficient way to write programs for the modern enterprise computing environment. It is, by any measure, one of the most important languages of the 21st century.

The purpose of this chapter is to place C# into its historical context, including the forces that drove its creation, its design philosophy, and how it was influenced by other computer languages. This chapter also explains how C# relates to the .NET Framework. As you will see, C# and the .NET Framework work together to create a highly refined programming environment.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «C# 3.0 the Complete Reference 3/E (Complete Reference Series)»

Look at similar books to C# 3.0 the Complete Reference 3/E (Complete Reference Series). We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «C# 3.0 the Complete Reference 3/E (Complete Reference Series)»

Discussion, reviews of the book C# 3.0 the Complete Reference 3/E (Complete Reference Series) and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.