随笔分类 - C#
摘要:1.Optional and Named Parameters calls these methods can optionally not specify some of the arguments, thereby accepting the default values. when you c
阅读全文
摘要:1.Constants is a symbol that has a never-changing value. its value must be determinable at compile time. 使用范围: 1.The compiler then saves the constant’
阅读全文
摘要:1.The Different Kinds of Type Members 1.Constants:a symbol that identifies a never-changing data value.Constants are always associated with a type, no
阅读全文
摘要:1.Programming Language Primitive Types primitive types:Any data types the compiler directly supports. Primitive types map directly to types existing i
阅读全文
摘要:1.All Types Are Derived from System.Object The CLR requires all objects to be created using the new operator(Employee e = new Employee("ConstructorPar
阅读全文
摘要:the .NET Framework has in place to deal with versioning problems. Two Kinds of Assemblies, Two Kinds of Deployment weakly named assemblies 、 strongly
阅读全文
摘要:buliding types into a module: response files: the IL disassembler:ILDasm.exe add assemblies to a project by using the visual studio IDE using the asse
阅读全文
摘要:the native code generator tool:NGen.exe optimization tool:MPGO.exe 所有类型最终都继承自System.Object。则所有类型都有如下的特点: CLS:
阅读全文
摘要:含义 使用DataReader是一个比较节省服务器资源的选择。DataReader提供了一种只读的、只向前的数据访问方法,因此在访问比较复杂的数据,或者只是想显示某些数据时,DataReader再适合不过了。 datareader对象提供只读单向数据的快速传递,单向:您只能依次读取下一条数据;只读:
阅读全文