随笔分类 - C#/.NET
转:ASP.NET Web Services or .NET Remoting: How to Choose
摘要:ASP.NET Web Services or .NET Remoting: How to Choose Priya DhawanTim EwaldMicrosoft Developer Network September 2002 Applies to:Microsoft® ASP.NET Web servicesMicrosoft® .NET FrameworkMicrosoft® .NET Remoting Summary: Understand how the Microsoft .NET Remoting infrastructure and Microsoft ASP.NET
阅读全文
转:类与结构的差别
摘要:目录 类与结构的实例比较 类与结构的差别 如何选择结构还是类 一.类与结构的示例比较: 结构示例: public struct person { string name; int height; int weight public bool overweight() { //implement something } } 类示例: public class testtime { int hours; int minutes; int seconds; public void passtime() { //implementation of behavior } } 调用过程: public c
阅读全文
转:Generics : C# Advanced features - Part 1
摘要:Generics : C# Advanced features - Part 1 This article gives an introduction to a new feature introduced into C# Language called "Generics". The concept is explained with the help of several samples. In the ”VS for Yukon” version of the C# language, Microsoft plans to build on an already el
阅读全文
转:C# 泛型简介
摘要:C# 泛型简介 Visual Studio 2005 发布日期 : 5/30/2005 | 更新日期 : 5/30/2005 Juval LowyIDesign 摘要:本文讨论泛型处理的问题空间、它们的实现方式、该编程模型的好处,以及独特的创新(例如,约束、一般方法和委托以及一般继承)。此外,本文还讨论 .NET Framework 如何利用泛型。 下载 GenericsInCSharp.msi 示例文件 。 注 本文假定读者熟悉 C# 1.1。有关 C# 语言的详细信息,请访问 http://msdn.microsoft.com/vcsharp/language。 本页内容 简介 泛型问
阅读全文
转:What's New in the .NET Framework 4
摘要:What's New in the .NET Framework 4 .NET Framework 4 Other Versions Visual Studio 2008 .NET Framework 3.0 Visual Studio 2005 This topic contains information about key features and improvements in the .NET Framework version4. This topic does not provide comprehensive information about all new featu
阅读全文
面试题
摘要:1.什么是Assembly?表现形式是什么?2.什么是CLR?作用是什么?3.DotNet中的GC回收机制是怎样的?4.Struct和Class的区别?5.抽象类和接口的区别?6.String是否可以被继承?7.描述装箱和拆箱的过程。8.DotNet页面间的值传递有哪写方法?各有什么优缺点?9.在系统架构中,约定在那一层进行异常处理?10.使用哪些手段对数据库查询进行优化11.如何防止数据库注入式...
阅读全文
VS 2005 在 x64 操作系统上的 bug
摘要:今天用 VS 2005 写了一段Remoting的代码。运行总是报错,错误信息如下:FatalExecutionEngineError was detectedMessage: The runtime has encountered a fatal error. The address of the error was at 0x7f5350c6, on thread 0x12a0. The er...
阅读全文
学习笔记(OO)
摘要:定义了接口IVehicle父类:Car实现了IVehicle子类:Bus继承Car总结:当创建Bus实例的时候,会先调用Car的构造函数,再调用Bus的构造函数;当声明了析构函数时,会调用Bus的析构函数,再调用Car的析构函数;Car中声明了一个Stop的虚方法,在Bus中进行重载。在Car和Bus的析构函数中调用Stop这个方法,结果都调用了Bus中的Stop方法;显示释放资源,类可以继承ID...
阅读全文
基于Typed DataSet数据访问的实现
摘要:VS Studio可以帮助我们通过简单的拖拽生成Typed DataSet。同时自动生成了DataAdapter,更加简化了数据的访问操作。下面是我基于VS 2005编写的一个类,为基于Typed DataSet的数据访问提供了比较简单的方法。基类使用泛型,反射等方法实现了数据访问的封装。在定义实体类时,只需要继承该基类就可以实现数据的读取、保存和删除操作。 1using System; 2...
阅读全文