tagconfiguration.cs
来自「破解的飞信源代码」· CS 代码 · 共 50 行
CS
50 行
namespace Imps.Utils.TagParser
{
using System;
public class TagConfiguration
{
private string tagName;
private System.Type type;
public object CreateInstance()
{
object obj2 = null;
if (this.Type != null)
{
obj2 = Activator.CreateInstance(this.Type, new object[] { this.tagName });
}
if (obj2 == null)
{
throw new Exception(string.Format("不能创建\"{0}\"的实例,参数名:\"{1}\"", this.Type.ToString(), this.tagName));
}
return obj2;
}
public string TagName
{
get
{
return this.tagName;
}
set
{
this.tagName = value;
}
}
public System.Type Type
{
get
{
return this.type;
}
set
{
this.type = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?