代码改变世界

随笔分类 -  dot net

【好文要转】 C#中的析构函数

2011-05-09 16:06 by Aga.J, 393 阅读, 收藏,
摘要: 文章出处:ミ咯咯①笑。 的 C#中的析构函数析构函数 析构函数(destructor) 与构造函数相反,当对象脱离其作用域时(例如对象所在的函数已调用完毕),系统自动执行析构函数。析构函数往往用来做“清理善后” 的工作(例如在建立对象时用new开辟了一片内存空间,应在退出前在析构函数中用delete释放)。以C++语言为例,析构函数名也应与类名相同,只是在函数名前面加一个波浪符~,例如~stud( ),以区别于构造函数。它不能带任何参数,也没有返回值(包括void类型)。只能有一个析构函数,不能重载。如果用户没有编写析构函数,编译系统会自动生成一个缺省的析构函数,它也不进行任何操作。所以许多简 阅读全文

What is WCF for me?

2011-03-16 17:07 by Aga.J, 456 阅读, 收藏,
摘要: Recently, one of my project required me to handle WCF (Windows Communication Foundation) to solve some communication problem. So Ibegan to studyWCF three days ago. First of all, I need to find some resources about WCF. Yeah, MSDN is good place to study my investigation on WCF. Here is the web site:. 阅读全文

What is WPF for me?

2011-03-13 19:47 by Aga.J, 429 阅读, 收藏,
摘要: You may be familiar to windows form. We use our application based on windows form every day. And have you heard “Web OS”? Yeah, it’s a good idea. But now it is not common to see Web OS in our daily life. However in the future, Web OS may replace our traditional operating system. How does WPF relate. 阅读全文