Alternative for Microsoft.VisualBasic.Information.IsNumeric in C#
<pre><code>attrval[5] = WrmService.WindowsAgent.AgentVersion;
</code></pre>

<p>From above if attrval[5] is null or not getting any value or any strings other than numeric values I want to assign attrval[5] to value '0.0.0.0' otherwise I will
display the numeric value which is coming.What coding i have to implement here</p>

<p>as per the information while doing googling I did this </p>

<pre><code>attrval[5] = (WrmService.WindowsAgent.AgentVersion == null || Microsoft.VisualBasic.Information.IsNumeric(WrmService.WindowsAgent.AgentVersion)) ? 
"0.0.0.0" : WrmService.WindowsAgent.AgentVersion; 
</code></pre>

<p>but Microsoft.VisualBasic.Information.IsNumeric making problems. Is there any similar one in C#?</p>

<p>only two outputs I required one will be numeric and one will be any other, it can be string or null whatever it i have to set in to 0.0.0.0 </p>
