String concatenation 
<pre><code>string res1 = "CalcAPI.GetXElementValue(" + "\"" + res[0] + "\"" + "," + "\"" + res[1] + "\"" + ","  + false +  ")"
</code></pre>

<p>in </p>

<pre><code>res[0] = "IRS5555"
res[1] = "IRS001"
</code></pre>

<p>Output of this code is:</p>

<pre><code>CalcAPI.GetXElementValue("IRS5555","IRS001",False)
</code></pre>

<p>but I want </p>

<pre><code>CalcAPI.GetXElementValue("IRS5555","IRS001",false)
</code></pre>

<p><code>false</code> in lower case.</p>

<p>Sorry for not providing full code...
false is not static...</p>

<pre><code>    public static object GetElementDataType(string DataType)
     {
         ///Write here methos for fetching data type of current element.
          object res = null;
         switch (DataType.ToLower())
          {
              case "int":
                 res = 0;
                 break;
              case "double":
                 res = 0.0;
                 break;
              case "string":
                 res = "";
                 break;
              case "myboolean":
                 res = false;
                 break;
              default:
                 res = "";
                 break;
          }
         return res;
     }

     string res1 = 
         "CalcAPI.GetXElementValue(" + "\"" + res[0] + "\"" + "," 
                                     + "\"" + res[1] + "\"" + ","  
                                     + GetElementDataType("myboolean") +  ")"
</code></pre>

<p>then result is </p>

<pre><code> CalcAPI.GetXElementValue("IRS5555","IRS001",False)
</code></pre>

<p>but i want </p>

<pre><code> CalcAPI.GetXElementValue("IRS5555","IRS001",false)
</code></pre>

<p>if i pass double</p>

<pre><code> string res1 = "CalcAPI.GetXElementValue(" + "\"" + res[0] + "\"" + "," + "\"" + res[1] + "\"" + ","  + GetElementDataType("double") +  ")"
</code></pre>

<p>then result is </p>

<pre><code>CalcAPI.GetXElementValue("IRS5555","IRS001",0)
</code></pre>

<p>but i want </p>

<pre><code>CalcAPI.GetXElementValue("IRS5555","IRS001",0.0)
</code></pre>

<p>if i pass string </p>

<pre><code>string res1 = "CalcAPI.GetXElementValue(" + "\"" + res[0] + "\"" + "," + "\"" + res[1] + "\"" + ","  + GetElementDataType("string") +  ")"
</code></pre>

<p>then result is </p>

<pre><code>CalcAPI.GetXElementValue("IRS5555","IRS001",)
</code></pre>

<p>but i want </p>

<pre><code>CalcAPI.GetXElementValue("IRS5555","IRS001","")
</code></pre>
