错误: Could not load type 'System.Reflection.AssemblySignatureKeyAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c 调试或者在安装了VS2012的电脑上运行没事,但在干净的环境下,就报这个错误. 解决: 查了一下AssemblySignatureKeyAttribute,是.net framework4.…
Given n points on a 2D plane, find if there is such a line parallel to y-axis that reflect the given points. Example 1: Given points = [[1,1],[-1,1]], return true. Example 2: Given points = [[1,1],[-1,-1]], return false. Follow up: Could you do bette…
反射主要用于在程序运行期间动态解析相关类的类名,命名空间,属性,方法并进行相应操作,以下通过两个简单的例子进行了说明: 示例1:调用程序集内部方法,运行时动态获取相关类的信息,包括类名,命名空间等信息并进行对象的创建及方法的调用: 测试类: class HI { public string Hi = "HelloWorld"; public string SayHello_CI() { return "Hello World!"; } public string S…