POCO के लिए एक माइक्रोसॉफ्ट ऑफिस वस्तु के लिए एक नक्शाकार बनाने के लिए कोशिश कर रहा है और इसप्रतिबिंब वस्तुओं
// doesn't work
// returns an empty array where o is a RCW on an office object
foreach(var pi in o.GetType().GetProperties())
tgt.SetValue(rc, pi.GetValue(o, null));
पाया तो यह
foreach(var field in tgt.GetFields()){
var pv = o.InvokeMember(field.Name, System.Reflection.BindingFlags.GetProperty, null, o, null);
i.SetValue(rc, pv);
}
जो अब लेकिन सोच क्यों लिए काम करता है का सहारा लेना है RCW.GetProperties()
यहाँ काम नहीं करता है?