I am doing to below from JavaScript API.
Passing parameters from Javascript to a GPService in ArcGIS Server
Is there a way to do the same from C# in .Net framework? if so how?
<SPAN class="keyword token">var</SPAN> gpUrl <SPAN class="operator token">=</SPAN> <SPAN class="string token">"https://xyz.gov/arcgis/rest/services/Test/createGeometry/GPServer/Geometry"</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> gp <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Geoprocessor</SPAN><SPAN class="punctuation token">(</SPAN>gpUrl<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">for</SPAN> <SPAN class="punctuation token">(</SPAN><SPAN class="keyword token">var</SPAN> f <SPAN class="operator token">=</SPAN> <SPAN class="number token">0</SPAN><SPAN class="punctuation token">;</SPAN> f <SPAN class="operator token"><</SPAN> text<SPAN class="punctuation token">.</SPAN>length<SPAN class="punctuation token">;</SPAN> f<SPAN class="operator token">++</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
obj <SPAN class="operator token">=</SPAN> JSON<SPAN class="punctuation token">.</SPAN><SPAN class="token function">parse</SPAN><SPAN class="punctuation token">(</SPAN>text<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
varaddress <SPAN class="operator token">=</SPAN> obj<SPAN class="punctuation token">.</SPAN>employees<SPAN class="punctuation token">[</SPAN>f<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN>address<SPAN class="punctuation token">;</SPAN>
vardistance <SPAN class="operator token">=</SPAN> obj<SPAN class="punctuation token">.</SPAN>employees<SPAN class="punctuation token">[</SPAN>f<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN>distance<SPAN class="punctuation token">;</SPAN>
varid <SPAN class="operator token">=</SPAN> obj<SPAN class="punctuation token">.</SPAN>employees<SPAN class="punctuation token">[</SPAN>f<SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">.</SPAN>id<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> params <SPAN class="operator token">=</SPAN> <SPAN class="punctuation token">{</SPAN>
address<SPAN class="punctuation token">:</SPAN> varaddress<SPAN class="punctuation token">,</SPAN>
distance<SPAN class="punctuation token">:</SPAN> vardistance<SPAN class="punctuation token">,</SPAN>
uniqueid<SPAN class="punctuation token">:</SPAN> varid
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">;</SPAN>
gp<SPAN class="punctuation token">.</SPAN><SPAN class="token function">execute</SPAN><SPAN class="punctuation token">(</SPAN>params<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>