我们需要获取类,属性,方法的描述.这个跟获取枚举的描述一样,需要我们通过反射来做.这还需要我们的利用System.ComponentModel:Description 的属性来完成. 新建一个类:使用的是: System.ComponentModel:Description [Description("类的描述")] public class TestDes { [Description("id值")] public int Id { get; set; } […
转自:http://blog.csdn.net/syhost/article/details/14448899 完整的报错为: system/core/include/cutils/properties.h:64:39: error: call to '__property_get_too_small_error' declared with attribute error: property_get() called with too small of a bufferIn function…
错误: Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c 调试或者在安装了VS2012的电脑上运行没事,但在干净的环境下,就报这个错误. 解决: 查了一下AssemblySignatureKeyAttribute,是.net framework4.…
转自:http://www.cnblogs.com/ego/p/3321122.html 错误: Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c 调试或者在安装了VS2012的电脑上运行没事,但在干净的环境下,就报这个错误. 解决: 查了一下As…