Table A-1. .NET 2.0 and C# 2.0 Features Index
Chapter.Section  | Feature  | Description  | 
|---|
2.2  | float type  | Now referred to as a single.  | 
2.2  | tryParse method  | Has been added to return a Boolean value if a string can be successfully converted into the target type: 
int iParse =
   Int32.TryParse("100", out  result);
 
 | 
3.2  | Static class  | A class containing only static members can be declared.  | 
3.4  | Property access modifier  | The get and set accessors can now have modifiers: 
protected set { name= value; }  | 
">3.7  | Anonymous methods  | Eliminates the need for a separate event handler for delegates.  | 
3.10  | Generics syntax  | New syntax that enables collection objects to be made type-safe. An application specifies the type of data a class can hold in a parameter: myStack<T> = new myStack<T>(); | 
4.4  | Iterators  | An easier way to implement enumeration on a custom class.  | 
4.4  | System.Collection. Generic namespace  | Holds a generic version of the collection classes. New classes include List<>, Dictionary<>, and Stack<>.  | 
7.1  | DataGridView and MenuStrip controls  | Some new WinForms controls.  | 
7.6  | StatusStrip and ToolStripProgressBar controls  | StatusStrip control supersedes StatusBar. ToolStripProgressBar can be displayed on a StatusStrip.  | 
10.2  | XmlReaderSettings class  | New class used to define the behavior of the XmlReader object. Notably, it allows XML validation to be performed automatically while reading nodes.  | 
10.4  | XmlReader.Create method  | New method that returns an instance of an XmlReader.  | 
11.1  | ProviderFactory class  | Used to return connection and command objects from a specified data provider: 
string pvdr="System.Data.SqlClient";
DBProviderFactory factory;
factory = DBProviderFactories.GetFactory(pvdr);
DbConnection conn = factory.CreateConnection();
  
 | 
11.4  | DataTable.Load() method  | Accepts a DataReader object as a parameter and fills a table based on DataReader.  | 
12.3  | DataGridView class  | WinForms class that supersedes the DataGrid control. Includes a virtual mode that permits the application to dynamically control the contents of the grid  | 
13.2  | GZipStream class  | Class to perform text compression.  | 
13.3  | ParameterizedThreadStart delegate  | Permits data to be passed to a thread.  | 
13.4  | Semaphore class  | A new synchronization class that is used to control the number of threads that can access a resource.  | 
16.1  | Partial classes  | A code-behind page can now contain a partial class that extends the class in the main Web page.  | 
16.1  | PostBackUrl property  | Permits a Web page to easily post its content to a Web page other than itself.  | 
16.3  | GridView control  | ASP.NET's new control that supersedes the DataGrid control.  | 
16.3  | AppendDataBoundItems property  | Indicates whether data bound to a list control should overwrite existing data in the control.  | 
16.3  | DataSource controls  | The logic for accessing a data source can now be encapsulated in controls designed to serve as a bridge to a variety of data sources including SQL and XML.  | 
16.4  | ValidationGroup property  | Allows validation controls to be grouped so that when a page is submitted, only controls whose validators are in a specific group are validated.  | 
16.5  | Master pages  | Allow a Web page to be created as a template that provides a consistent interface to users. New content pages are created by replacing the placeholders in the template.  | 
17.2  | <connectionStrings> section  | New section in the web.config file reserved for connection strings.  | 
18.3  | Web Service response handled as event  | .NET now includes in a Web proxy a delegate and event that fire when a Web Service returns a response. An application can process the results in its custom event handler.  |