|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
The list of .NET 2.0 and C# 2.0 new features is extracted from the appendix of the book Practical .NET2 and C#2. All mentioned features are thoroughly covered in the book. Contents
AssemblyThe use of the The new The ildasm.exe 2.0 tool offers, by default, the possibility of obtaining statistics in regards to the byte size of each section of an assembly and the display of its metadata. With ildasm.exe 1.x, you needed to use the /adv command line option. Application localizationThe resgen.exe tool can now generate C# or VB.NET code which encapsulates access to resources in a strongly typed manner. Application build processThe .NET platform is now delivered with a new tool called msbuild.exe. This tool is used to build .NET applications and is used by Visual Studio 2005, but you can use it to launch your own build scripts. Application configurationThe .NET 2.0 platform features a new, strong typed management of your configuration parameters. Visual Studio 2005 also contains a configuration parameter editor which generates the code needed to take advantage of this feature. Application deploymentThe new deployment technology named ClickOnce allows a fine management of the security, updates, as well as on-demand installation of applications. Visual Studio 2005 offers some practical facilities to take advantage of this technology. CLRA major bug with version 1.x of the CLR which made it possible to modify signed assemblies has been addressed in version 2. The New features have been added to the ngen.exe tool to support assemblies using reflection, and to automate the update of the compiled version of an assembly when one of its dependencies has changed. The Three new mechanisms named Constrained Execution Region (CER), Critical Finalizer, and Critical Region (CR) allow advanced developers to increase the reliability of applications such SQL Server 2005 which are likely to deal with a shortage of system resources. A memory gate mechanism can be used to evaluate, before an operation, if sufficient memory is available. You can now quickly terminate a process by calling the DelegateA delegate can now reference a generic method or a method that is part of a generic type. We then see appearing the notion of generic delegates. With the new overloads of the In addition, the invocation of methods through the use of delegates is now more efficient. Threading/SynchronizationYou can easily pass information to a new thread that you created by using the new The The The The new class The new method The .NET 2.0 framework offers new classes which allow to capture and propagate the execution context of the current thread to another thread. SecurityThe The following new permission classes have been added: The The .NET 2.0 framework allows to launch a child process within a different security context than the parent process. The .NET 2.0 framework offers new types within the The .NET 2.0 framework presents new types within the The .NET 2.0 framework offers new hashing methods within the The .NET 2.0 framework offers several classes giving access to the functionality offered by the Windows Data Protection API (DAPI). The The .NET 2.0 framework offers new types within the The new namespace named Reflection/AttributeYou now have the possibility of loading an assembly in reflection-only mode. Also, the The .NET 2.0 framework introduces the notion of conditional attribute. Such an attribute has the particularity of being taken into consideration by the C# 2 compiler only when a certain symbol is defined. InteroperabilityThe notion of function pointers and delegates are now interchangeable using the new The The new The tlbimp.exe and tlbexp.exe tools present a new option named /tlbreference which allow the explicit definition of a type library without having to go through the registry. This allows the creation of compilation environments which are less fragile. Visual Studio 2005 offers features to take advantage of the reg-free COM technology of Windows XP within a .NET application. This technology allows the use of a COM class without needing to register it into the registry. Structures related to COM technology such as The new namespace named C# 2.0Undoubtedly, the highlight feature in .NET 2.0 and C# 2.0 is generics. C# 2.0 allows the declaration of anonymous methods (which can be seen as closures). C# 2.0 presents a new syntax to define iterators. The csc.exe compiler offers the following new options /keycontainer, /keyfile, /delaysign, /errorreport and /langversion. C# 2.0 brings forth the notions of namespace alias qualifier, of C# 2.0 introduces the new compiler directives The C# 2.0 compiler is now capable of inferring a delegation type during the creation of a delegate object. This makes source code more readable. The .NET 2.0 framework introduces the notion of nullable types which can be exploited through a special C# 2.0 syntax. C# 2.0 now allows you to spread the definition of a type across multiple source files within the same module. This new feature is called partial type. C# 2.0 allows the assignment of a different visibility to the accessor of a property or indexer. C# 2.0 allows the definition of static classes. C# 2.0 now allows the definition of a table field with a fixed number of primitive elements within a structure. Visual Studio 2005 intellisense feature now uses the XML information contained within Visual Studio 2005 allows you to build UML-like class diagrams in-sync with your code. ExceptionsThe The Visual Studio 2005 debugger offers a practical wizard to obtain a complete set of information relating to an exception. Visual Studio 2005 allows you to be notified when a problematic event known by the CLR occurs. These events sometime provoke managed exceptions. CollectionsThe whole set of collection types within the .NET framework have been revised in order to account for generic types. Here is a comparison chart between the
The DebuggingThe .NET 2.0 allows indicating through attributes the assemblies, modules, or zones of code that you do not wish to debug. This feature is known as Just My Code. C# 2.0 programmers now have access to the Edit and Continue feature allowing them to modify their code while debugging it. .NET 2.0 presents the new enumeration named Base classesThe primitive types (integer, boolean, floating point numbers) now expose a method named The .NET 2.0 framework offers several implementations derived from the The new The new The .NET 2.0 framework introduces the notion of trace source allowing a better management of traces. Also, the following trace listener classes have been added: Several new functionalities have been added to the IOThe .NET 2.0 framework offers the new class In .NET 2.0, the classes that are part of the New methods now allow you to read and write a file in a single call. New classes are now available to compress/decompress a data stream. A new unmanaged version The new The new namespace Web resource caching services are now available in the new The new Windows Forms 2.0Visual Studio 2005 takes advantage of the notion of partial classes in the management of Windows Forms. Hence, it will not mix anymore the generated code with our own code in the same file. Windows Forms 2.0 offers the The appearance (i.e. the visual style) of controls is better managed by Windows Forms 2.0 as it does not need to use the comctl32.dll DLL to obtain a Windows XP style. Windows Forms 2.0 and Visual Studio 2005 contain the framework and development tools for a quick and easy development of presentation and edition windows for data. Windows Forms 2.0 presents the new classes The The The The The The The ADO.NET 2.0ADO.NET 2.0 presents new abstract classes such as ADO.NET 2.0 offers an evolved architecture of abstract factory classes which allow decoupling the data access code from the underlying data provider. ADO.NET 2.0 presents new features to construct connection strings independently of the underlying data provider. ADO.NET 2.0 offers a framework allowing the programmatic traversal of a RDBMS schema. The indexing engine used internally by the framework when you use instances of the Instances of the The The new method ADO.NET 2.0 now offers a bridge between the connected and disconnected modes which allow the Typed ADO.NET 2.0 allows to store data updates in a more efficient manner, thanks to batch updates. ADO.NET 2.0: SQL Server data provider (SqlClient)You now have the possibility of enumerating SQL Server data sources. You have more control on connection pooling. The You can harness the bulk copy services of the SQL Server tool bcp.exe using the You can obtain statistics about the activity of a connection. There is a simplified and freely distributed version of SQL Server 2005 which offers several advantages over the previous MSDE and Jet products. TransactionThe new namespace named XMLThe performance of all classes involved in XML data handling have been significantly improved (by a factor of 2 to 4 in classic use scenarios according to Microsoft). The new It is now possible to partially validate a DOM tree loaded within an instance of It is now possible to modify a DOM tree stored in an The Support for the XML The 2005 version of SQL Server brings forth new features in regards to the integration of XML data inside a relational database. XML serialization can now serialize nullable information and generic instances. Also, a new tool named sgen.exe allows the pre-generation of an assembly containing the code to serialize a type. .NET RemotingThe new If you use a channel of type TCP, you now have the possibility of using the NTLM and Kerberos protocols to authenticate the Windows user under which the client executes, to encrypt the exchanged data and impersonate your requests. New attributes of the It is possible to consume an instance of a closed generic type, with the .NET Remoting technology, whether you are in CAO or WKO mode. ASP.NET 2.0Visual Studio .NET 2005 is now supplied with a web server which allows the testing and debugging of your web applications during development. It is now easy to use the HTTP.SYS component to build a web server which hosts ASP.NET without needing to use IIS. ASP.NET 2.0 presents a new model for the construction of classes representing web pages. This model is based on partial classes, and is different than the one offered in ASP.NET 1.x. The In ASP.NET 2.0, the model used for dynamic compilation of your web application has significantly improved, and is now based on several new standard folders. In addition, ASP.NET 2.0 offers two new pre-compilation modes: the in-place pre-compilation, and the deployment pre-compilation. To counter the effects of large viewstates in ASP.NET 1.x, ASP.NET 2.0 stores information in a base64 string, more efficiently, and introduces the notion of control-state. ASP.NET 2.0 introduces a new technique which allows to postback a page to another page. Certain events have been added to the lifecycle of a page. ASP.NET 2.0 offers an infrastructure to allow the process of the same request across multiple threads of a pool. This allows us to avoid running out of threads within the pool when several long requests are executed at the same time. New events have been added to the The manipulation of configuration files has been simplified because of the Visual Studio 2005 intellisense, a new web interface, a new UI integrated in IIS, and because of new base classes. ASP.NET 2.0 offers a framework allowing the standard management of events occurring during the life of a web application. You can now configure ASP.NET 2.0 so that it can detect whether it is possible to store a session identifier in a client-side cookie, or if it should automatically switch over to the URI mode if cookies are not supported. ASP.NET 2.0 now allows you to supply your own session or session ID management mechanism. The cache engine of ASP.NET 2.0 offers interesting new features. You can now use the ASP.NET 2.0 offers new server controls allowing declarative binding to a data source. ASP.NET 2.0 offers a new hierarchy of server-side controls for the presentation and the edition of data. These controls have the peculiarity of being able to use a data source control to read and write data. ASP.NET 2.0 offers a simplified template syntax. ASP.NET 2.0 adds the notion of master pages which allows the easy reuse of a page design across all pages of a website. ASP.NET 2.0 now offers an extensible architecture to allow insertion of navigational controls within your site. With ASP.NET 2.0, you can use the Forms authentication mode without being forced to use cookies. ASP.NET 2.0 allow the management of user authentication data as well of the roles to which they may belong, through the use of a database. Hence, several new server-side controls have been added to greatly simplify the development of ASP.NET applications which support authentication. ASP.NET 2.0 presents a new framework allowing the storage and access of users' profiles. ASP.NET 2.0 offers a framework facilitating the management and maintenance of the overall appearance of a site, thanks to the notions of themes and skins. ASP.NET 2.0 also offers a framework dedicated to the creation of web portals through the use of what is called WebParts. ASP.NET 2.0 offers a framework allowing the modification of rendered HTML code if the initiating HTTP request comes from a system with a small screen such as a mobile phone. Concretely, the rendering of each server control is done in a way to use less screen space. This modification is done through the use of adapter objects which are requested automatically and implicitly by ASP.NET during the rendering of the page. The "Inside the ASP.NET Mobile Controls" article on MSDN offers a good starting point on this new ASP.NET 2.0 feature. Web ServicesThe proxy classes generated by wsdl.exe now offers a new asynchronous model which allows cancellation.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||