如何将YAML反序列化为不可变的数据结构?Number = number; public int Number { get; }为此,我将使用构造函数所以不知何故,我需要首先检索从YAML解析的关于我的类的Dictionary<string, object> (所以99应该是int,而不是string),然后扫描我的类型以寻找合适的构造函数,
new Int32(); return n;当我使用InvokeMember调用带有参数new Object[]{1 , obj}的函数时但是,当SimpleTest中的OBJ被设置为复杂对象(OBJ = new MyClass())时,在调用该方法的页面上会出现以下异常:Exception has been thrown by the内部异常声明The underlying connection was closed: The connection was closed u