有点头晕~http://www.csdn.net/develop/Read_Article.asp?id=25354
解决方案 »
- wince 获取光标所在控件的ID
- 硬件模拟鼠标谁会?
- 如何将管道结果重定向到标准输出,windows平台,命令提示符下
- ViewState如何在类中使用
- “Microsoft.Practices.EnterpriseLibrary.Data.Database”并不包含“CreateConnection”的定义
- xml 文件头的问题
- 在下由B/S开发转到C/S遇到很多问题 请高人帮忙!!
- 我又来请教了(两个字符串相等的条件表达式怎么写)?不好意思阿!基础太差!急!!!
- 请问如何从一张表中取得约束关系呢?
- 关于菜单的快捷定义问题
- 本人要實現在打開一次連接後,在不關閉數據閱讀器的情況下執行一個循環.
- 如何在 splitter 上添加文字?还有怎么做象UltraEdit 中的搜索对话框?
{
public interface I1
{
void Test();
} public interface I2
{
void Test();
} public class BaseClass : I1, I2
{
public void TheTest()
{
this._Greeting();
} void I1.Test()
{
this.TheTest();
}
public void AnotherTest()
{
this.Greeting();
}
void I2.Test()
{
this.AnotherTest();
} private void _Greeting()
{
i += 1;
Console.WriteLine("Hello, Base. For the " + i + "th time(s)");
} static int i = 0;
protected virtual void Greeting()
{
this._Greeting();
}
} public class SubClass : BaseClass
{
static int j = 0;
protected override void Greeting()
{
j += 1;
Console.WriteLine("Hello, Sub. For the " + j + "th time(s)");
}
}
/// <summary>
/// Summary description for TestMain.
/// </summary>
class TestMain
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
I1 o1;
I2 o2;
BaseClass o3;
SubClass o4 = new SubClass(); o1 = o4;
o2 = o4;
o3 = o4; o1.Test();
o2.Test();
o3.TheTest();
o3.AnotherTest();
}
}
}
怎么只有一个人翻?上次我做掉查“VB.NET什么地方不如C#”的时候,每个人都说C#强大,都说没有VB.NET能写出而C#不能写出的程序,怎么现在都不动了呢?