![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 74
mikechenhua
以博客会友,望各位博主和朋友大力支持和提出中肯意见,谢谢。
展开
-
How to avoid using() mistake in C#?
As we know that in C# using() is suggested to avoid resourceleak or other good purposes, but in some cases it may be not suitable to use it,let me describe some of such kind of scenarios.原创 2015-01-10 00:15:35 · 345 阅读 · 0 评论 -
在C#里怎么重写已实现的接口
本文通过虚拟函数来实现接口在继承类里的重写。实现语言为C#。通常如果我们定义了一个接口如下:interface IMyInterface{ void Foo(int i);}然后我们在类Base里实现了此接口,如下:class MyClassBase{ protected void Foo(int i){ Mes原创 2014-12-27 09:28:31 · 5420 阅读 · 1 评论