public virtual MessageElementStructure PackStructure(object s) { string typename; if (CompareNamespace(ServiceDefinitionUtil.FindStructRRType(s.GetType()), out typename)) { return(FindStructureStub(typename).PackStructure(s)); } else { return(node.PackStructure(s, context)); } }