⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testinterface.cs

📁 vc的原码例子12 vc的原码例子12
💻 CS
字号:
using System;
using System.Collections;

class SampleClass
{
public SampleClass(int value)
{ 
  this.value = value;
}
private int value;
}

public class ArrayClone
{
	public static void Main()  
	{
		int [] A = new int [] {1, 2, 3, 4, 5};

		SampleClass Obj = new SampleClass(1700);

		if (A is System.ICloneable)
          Console.WriteLine("A is ICloneable");
		else
          Console.WriteLine("A is not ICloneable");

		if (A is System.IFormattable)
          Console.WriteLine("A is IFormattable");
		else
          Console.WriteLine("A is not IFormattable");

		if (Obj is System.ICloneable)
          Console.WriteLine("Obj is ICloneable");
		else
          Console.WriteLine("Obj is not ICloneable");

		if (Obj is System.IFormattable)
          Console.WriteLine("Obj is IFormattable");
		else
          Console.WriteLine("Obj is not IFormattable");
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -