が今なぜ疑問に思うために働くこの反射は
foreach(var field in tgt.GetFields()){
var pv = o.InvokeMember(field.Name, System.Reflection.BindingFlags.GetProperty, null, o, null);
i.SetValue(rc, pv);
}
に頼る必要がありPOCOさんへのMicrosoft Officeオブジェクトに対するマッパーを作成しようとし、この
// 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));
を発見したオブジェクトRCW.GetProperties()
はここでは機能しませんか?