public String ToXml() { try { ISerializable value = (ISerializable)mValue; return("<OutParam Name=" + mName + " Class=" + value.GetType() + ">" + value.ToXml() + "</OutParam>"); } catch { return("<OutParam Name=" + mName + " Class=String>" + mValue + "</OutParam>"); } }