« Home « Chủ đề lập trình .net

Chủ đề : lập trình .net


Có 20+ tài liệu thuộc chủ đề "lập trình .net"

Questions to .NET and Programming in C#

tailieu.vn

.NET is said to accelerate the next generation of the Internet [0.5]. What is the role of the CLR (Select all that apply) [2.0]. Microsoft .NET is primarily made up of the following three components. services d) .NET platform itself. The .NET platform is built on the following features of the Windows 2000 server family.(Select all that apply). The WriteLine...

Lập trình .net 4.0 và visual studio 2010 part 1

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 2

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 3

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 4

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 5

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 6

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 7

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 8

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 9

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 10

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 11

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 12

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 13

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 14

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 15

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 16

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 17

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 18

tailieu.vn

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

Lập trình .net 4.0 và visual studio 2010 part 19

tailieu.vn

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: