public void RenderObject(RendererMap rendererMap, object obj, TextWriter writer) { EligibilityInquiry inq = obj as EligibilityInquiry; if (inq != null) { writer.Write("Inquiry: "); foreach (MyNameValue nv in inq.Parameters) { writer.Write("{0}={1}\r\n", nv.Name, nv.Value); } writer.Write("Requested response type: {0}", inq.ResponseDataType); } }
// MW - Created because IObjectRenderer requires it. Patterned after RenderObject public string DoRender(RendererMap rendererMap, object obj) { string retVal = ""; EligibilityInquiry inq = obj as EligibilityInquiry; if (inq != null) { retVal += "Inquiry: "; foreach (MyNameValue nv in inq.Parameters) { retVal += string.Format("{0}={1}\r\n", nv.Name, nv.Value); } retVal += string.Format("Requested response type: {0}", inq.ResponseDataType); } return(retVal); }