📄 propertytypehash.cs
字号:
using System;
using System.Collections;
namespace SharpReportCore{
public class PropertyTypeHash{
static PropertyTypeHash instance = new PropertyTypeHash();
static public PropertyTypeHash Instance
{
get { return instance; }
}
Hashtable types = new Hashtable();
private static string MakeIndex(Type t, string name)
{
return t.FullName + '.' + name;
}
public object this[Type type, string fieldName]
{
get
{
return types[MakeIndex(type, fieldName)];
}
set
{
if (value == null)
return;
string key = MakeIndex(type, fieldName);
if (!types.Contains(key))
types.Add(key, value);
}
}
private PropertyTypeHash()
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -