Có 20+ tài liệu thuộc chủ đề "tài liệu .net 2010"
tailieu.vn Xem trực tuyến Tải xuống
These are exciting times to be a .NET developer, and Visual Studio 2010 (VS2010) and the .NET 4.0 framework have brought a bewildering number of changes. But fear not! In this book I will be getting you up to speed on these enhancements, and also taking a brief look at some of the important out-of-band releases, such as ASP.NET MVC,...
tailieu.vn Xem trực tuyến Tải xuống
Visual Studio IDE and MEF. This release of Visual Studio sees the IDE overhauled and much of it rewritten using WPF and managed code. The move to WPF allows Microsoft to make some stunning aesthetic additions to the IDE, and also opens up customization possibilities when combined with the new Managed Extensibility Framework (MEF).. Microsoft’s use of WPF for a...
tailieu.vn Xem trực tuyến Tải xuống
Open the project StartPage.csproj and note how StartPage.xaml is a standard XAML page with some Visual Studio-specific controls to display items such as recently opened projects.. Before you can use your new start page, you have to select it in Visual Studio options. Close Visual Studio and reopen it. Your new start page should now appear the next time Visual...
tailieu.vn Xem trực tuyến Tải xuống
What’s This All Got to Do with Visual Studio Extensibility?. Visual Studio utilizes MEF in an almost identical way to the previous examples when it loads Visual Studio extensions. When Visual Studio first loads, it examines the extensions directory and loads available extensions. Visual Studio Extensibility. After you install the Visual Studio customization SDK, a number of new extensibility projects...
tailieu.vn Xem trực tuyến Tải xuống
There are some welcome changes to C# and VB.NET, and major enhancements to the Common Language Runtime(CLR) and Base Class Library (BCL) in .NET 4.0. In this chapter I will be covering the following:. All .NET languages compile to the same IL code, so there is really no reason a feature should be present in one language and not another....
tailieu.vn Xem trực tuyến Tải xuống
Variance has changed in .NET 4.0. For those that are already comfortable with the concept of variance (stop looking so smug) here is the short version of what has changed in .NET 4.0:. You can now mark parameters in generic interfaces and delegates with the out keyword to make them covariant, and with the in keyword to make them contravariant...
tailieu.vn Xem trực tuyến Tải xuống
The new dynamic functionality in .NET 4.0 allows us to work with types not known at compile time in an intuitive and easy to read way. Create new languages to utilize the .NET Framework, such as IronPython and IronRuby. Additionally, .NET’s dynamic architecture allows these languages to automatically benefit from future framework advances.Utilize other dynamic languages and their libraries.. Utilize...
tailieu.vn Xem trực tuyến Tải xuống
You cannot use the DLR to create classes in C# or VB.NET. Apparently, the DLR does allow you to create classes, but this cannot be expressed using C# or VB.NET.. IL_0006: stloc.0 IL_0007: ret. using System.Collections.Generic;. using System.Linq;. using System.Text;. namespace Chapter3.DynamicComplex. .locals init ([0] class Chapter3.DynamicComplex.TestClass t) IL_0000: nop. class [mscorlib]System.Collections.Generic.IEnumerable`1<class [Microsoft.CSharp]Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>) IL_003a: call class [System.Core]. System.Runtime.CompilerServices.CallSite`1<!0>. class [System.Core]System.Runtime.CompilerServices.CallSite`1....
tailieu.vn Xem trực tuyến Tải xuống
One of the developers on ResolverOne was Michael Foord, who is author of IronPython in Action (Manning Publications, 2009). Why should VB.NET/C# developers be interested in IronPython?. Much of the discussion here applies to other dynamic languages, including IronRuby, but Python is my particular area of expertise.. IronPython is a .NET implementation of the popular open source programming language Python.....
tailieu.vn Xem trực tuyến Tải xuống
In this chapter you will look at the changes to the common language runtime (CLR) in .NET 4.0 that cover changes to security, garbage collection, threading, and internationalization. You will then look into the new types introduced in .NET 4.0 and the enhancements that have been made to existing classes. The last two releases of.NET (3.0 and 3.5) have been...
tailieu.vn Xem trực tuyến Tải xuống
Garbage Collection in .NET 4.0. So what’s changed then? Prior to .NET 4.0, a concurrent workstation GC could do most but not all of a generation 0 and 1 collection at the same time as a generation 2 collection. In .NET 4.0, however, concurrent workstation GC collection is replaced by background garbage collection. Background collection is not something you have...
tailieu.vn Xem trực tuyến Tải xuống
Exception handling has been improved in .NET 4.0 with the introduction of the System.Runtime.. Many developers (OK, I might have done this, too) have written code such as the following:. catch(System.exception e). So in .NET 4.0, corrupted state exceptions will never be caught even if you specify a try a catch block. However, if you do want to enable catching...
tailieu.vn Xem trực tuyến Tải xuống
ObservableCollection<T>, ReadOnlyObservableCollection<T>, and System.Collections.Specialized.. INotifyCollectionChanged have been moved into System.dll because they were useful outside of WPF applications. All classes in the System.Net namespace have improved stability and performance. string host = "mywebsite.com";. request.Date = System.DateTime.Now;. var socket = new System.Net.Sockets.Socket(new System.Net.Sockets.SocketInformation());. socket.Connect(new DnsEndPoint("www.microsoft.com . System.Net.Security.EncryptionPolicy enum or in Web/machine.config:. In .NET 4.0, NAT transversal support has been added to...
tailieu.vn Xem trực tuyến Tải xuống
Code Contracts. Code contracts are a method for expressing constraints and assumptions within your code. Code contracts are also supported in VS2008.. In addition to providing validation, code contracts can assist with code documentation and aiding understanding of a problem. Code contracts are part of Microsoft’s ongoing research project Spec. CAUTION Code contracts are still in active development, so this...
tailieu.vn Xem trực tuyến Tải xuống
To take full advantage of multicore machines, however, code has to be designed to be run in parallel.. A number of years ago, Microsoft foresaw the importance that multicore processors would come to play and started developing the parallel extensions. Although the parallelization enhancements make writing code to run in parallel much easier, don’t underestimate the increasing complexity that parallelizing...
tailieu.vn Xem trực tuyến Tải xuống
All the complexity of working with tasks is handled by the task scheduler, which in turn works with the main .NET thread pool. You can think of tasks as a wrapper for the thread pool and the preferred way of scheduling threads (although there is some additional overhead). The existing thread pool methods will continue to work, but tasks are...
tailieu.vn Xem trực tuyến Tải xuống
To help, Microsoft has added additional debugging features to the Visual Studio IDE (premium versions include additional profiling features). The first feature we will look at is the Parallel Task window.. Run the application in debug mode, ensuring that you have added a breakpoint to the first line.. The Parallel Tasks window offers the following functionality:. Parallel Stacks Window. The...
tailieu.vn Xem trực tuyến Tải xuống
In .NET 4.0, the thread pool has been enhanced, and a number of new synchronization classes have been introduced.. Previously ,the queue of work in the thread pool was held in a linked list structure and utilized a monitor lock. The great news is that you should find that if your existing applications are using the thread pool and you...
tailieu.vn Xem trực tuyến Tải xuống
Windows Workflow Foundation 4. Windows Workflow Foundation (WF) was first introduced in 2006 with .NET 3.0. What Can Windows Workflow Do for Me?. Windows Workflow provides the following functionality out of the box:. What Is Windows Workflow Foundation?. Windows Workflow Foundation is composed of 3 main components:
tailieu.vn Xem trực tuyến Tải xuống
Probably the biggest problem you may encounter is in the initial release of WF there is no support for statemachine workflows. Version 3 of the WF runtime will be included with .NET 4.0 runtime, so your WF3 should continue to run on the .NET 4.0 framework.. WF 4 offers superior performance (10 to 100 times quicker), a much improved designer,...