Appendix A. Features Specific to .NET 2.0 and C# 2.0

In This Appendix

Table A-1 provides a shortcut to reference the types and classes described in this book that are supported only in .NET 2.0 and C# 2.0.

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. ...

Get Core C# and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.