TAILIEUCHUNG - Professional ASP.NET 1.0 Special Edition- P5
Professional Special Edition- P5:Those of us who are Microsoft developers can't help but notice that .NET has received a fair amount of visibility over the last year or so. This is quite surprising considering that for most of this period, .NET has been in its early infancy and beta versions. I can't remember any unreleased product that has caused this much interest among developers. And that's really an important point, because ignoring all the hype and press, .NET really is a product for developers, providing a great foundation for building all types of applications | Let s have a look at the practicalities of the CLR and CLS. Common API In the previous version of Visual Studio common functionality was always far harder to implement than it should have been. For C programmers the Windows API is a natural home but Visual Basic programmers had to use custom controls and libraries or delve into the API itself. This isn t complex and can yield great benefits but there is no consistency. With .NET we now have a common API and a great set of class libraries. For example consider the case of TCP IP network applications. C programmers generally write directly to Winsock whereas Visual Basic programmers prefer to use custom controls on their forms. The .NET framework provides a namespace encompassing all of the networking functionality and its usage is the same for each language. For example consider the case of writing to a UDP port - you can see the only differences in the code are the syntax of the language Visual Basic .NET Dim Client As UdpClient Dim HostName As String Dim HostIP As IPHostEntry Dim GroupAddress As IPAddress Dim Remote As IPEndPoint HostName HostIP HostName Client New UdpClient 8080 GroupAddress GroupAddress 500 Remote New IPEndPoint GroupAddress 8080 .NET is great 13 Remote C UdpClient Client String HostName IPHostEntry HostIP IPAddress GroupAddress IPEndPoint Remote HostName HostIP HostName Client new UdpClient 8080 GroupAddress GroupAddress 500 Remote new IPEndPoint GroupAddress 8080 .NET is great 13 Remote JScript .NET var Client UdpClient var HostName String var HostIP IPHostEntry var GroupAddress IPAddress var Remote IPEndPoint HostName HostIP HostName Client new UdpClient 8080 GroupAddress GroupAddress 500 Remote .
đang nạp các trang xem trước