static void AttachTemplate(Wd.Document target, Wd.Document source) { var template = source.get_AttachedTemplate(); object o = template.FullName; target.set_AttachedTemplate(ref o); }