摘要: 用ASP.NET/C#連接Access和SQL Server數(shù)據(jù)庫(kù)
閱讀全文
摘要: Perform an XSL Transform
閱讀全文
摘要: Use XML Serialization with Custom Objects/Create a Schema for a .NET Class/Generate a Class from a Schema
閱讀全文
摘要: Validate an XML Document Against a Schema
閱讀全文
摘要: find the nodes in XML in 3 means
閱讀全文
摘要: read and write XMl in 2 means in c#
閱讀全文
摘要: Introduction
Accessing databases is a common part of most applications and with the introduction of C# and ADO.NET, has become quite simple. This article will demonstrate the four most basic database operations.
Reading data. This includes various data types such as integers, strings and dates.
Writing data. As with reading we will write these common types. This will be done using a SQL statement.
Updating or modifying data. Again we will use a simple SQL statement.
閱讀全文
摘要: Managed, Unmanaged, Native: What Kind of Code Is This?
閱讀全文
摘要: 歸納起來,泛型比非泛型具有下面兩個(gè)優(yōu)點(diǎn):
1、 更加安全
在非泛型編程中,雖然所有的東西都可以作為Object傳遞,但是在傳遞的過程中免不了要進(jìn)行類型轉(zhuǎn)換。而類型轉(zhuǎn)換在運(yùn)行時(shí)是不安全的。使用泛型編程將可以減少不必要的類型轉(zhuǎn)換,從而提高安全性。
2、 效率更高
在非泛型編程中,將簡(jiǎn)單類型作為Object傳遞時(shí)會(huì)引起B(yǎng)oxing和Unboxing操作,這兩個(gè)過程都是具有很大開銷的。使用泛型編程就不必進(jìn)行Boxing和Unboxing操作了。
.NET泛型具有很好的二進(jìn)制重用性。這一點(diǎn)得益于.NET將泛型內(nèi)建在CLR之中。C++泛型和評(píng)估中Java泛型所依靠的是它們各自的編譯器所提供的特性,編譯器在編譯泛型代碼時(shí)將確切的類型展開,這就難免會(huì)出現(xiàn)代碼膨脹的問題。而.NET的泛型代碼是在運(yùn)行時(shí)由JIT即時(shí)編譯的,這樣CLR就可以為不同類型重用大部分的即時(shí)編譯代碼了。
閱讀全文
摘要: Namespaces/Identifiers
閱讀全文
摘要: In this article, we will analyze COM components and their application in C#. These components became popular among developers after Microsoft released Active Server Pages. However, the whole scenario changed when Microsoft released its Windows 2000 operating system and subsequent COM+ technology. In this article, we will examine the fundamentals of this exiting technology followed by its application in C#.
閱讀全文
摘要: Exception Handling in C#
閱讀全文
摘要: Properties/Access Modifiers/Enumerations/Interfaces(c#)
閱讀全文