我正在为类构造函数编写一些代码,它循环遍历类的所有属性,并调用一个通用的静态方法,它使用来自外部API的数据填充我的类。所以我有这个作为一个例子类: public class MyClass{
public string Property1 { get; set; }
public int Property2 { get; set; }
public bool Pro
所以,我有以下的反射的方法: public class Singleton
{
private Singleton(){}
public static readonly Singleton instance = new Singleton();
public string DoSomething(){ ... }
public string DoS