コード例 #1
0
        public void Serialize(ControllerContext context, object model, ContentType responseFormat)
        {
            DataContractXmlActionResult xml = new DataContractXmlActionResult(
                model,
                responseFormat
                );

            xml.ExecuteResult(context);
        }
コード例 #2
0
 public void Serialize(ControllerContext context, object model, ContentType responseFormat) {
     DataContractXmlActionResult xml = new DataContractXmlActionResult(model, responseFormat);
     xml.ExecuteResult(context);
 }