/// <summary>
 /// 强类型字符资源构造
 /// </summary>
 /// <param name="resourcetype">强类型字符资源的类型</param>
 /// <param name="staticpropertyname">强类型字符资源的类型的属性名称</param>
 public ResourceDescriptionAttribute(Type resourcetype, string staticpropertyname)
 {
     ResourceDescription = StringResourceGetter.GetResourceString(resourcetype, staticpropertyname);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 强类型字符资源构造
 /// </summary>
 /// <param name="resourcetype">强类型字符资源的类型</param>
 /// <param name="staticpropertyname">强类型字符资源的类型的属性名称</param>
 public ResourceDisplayNameAttribute(Type resourcetype, string staticpropertyname)
 {
     ResourceDisplayName = StringResourceGetter.GetResourceString(resourcetype, staticpropertyname);
 }