c#接口与反射.泛型详解

来源:百度知道 编辑:UC知道 时间:2024/05/27 19:46:33
那为好心的大哥,大姐能帮我全面解释一下这几个概念啊!通俗一点的举现实中的例子最好了.小弟在这里谢过了.高手们帮帮忙啊

这里有我写的一个反射的例子。。。。
/*******************************************************************

文件名: ReflectType.cs
摘要: 映射和类型库的简单使用
开发平台: Win Xp SP2 + .NET Framework 2.0
编译环境: CSC.exe 8.0 (in Visual Studio 2005 SDK)
作者: 88250
完成日期: 2007-1-15 版本: 1.0
Blog: http://DL88250.ynutx.net
E-mail: DL88250@gmail.com
QQ: 845765 or 316281008

*******************************************************************/

using System;
using System.Reflection; // Important!

namespace SEI.DL88250.SourceCodes.CSharp
{
// A test interface
interface IOne
{
void Method1();
}
// A test class
public class Test : IOne
{
// Fields
public int fieldOne;
private int fieldTwo;
public string fieldThree;

// Constructors