コード例 #1
0
        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);
            }
        }
コード例 #2
0
        // 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);
        }