CSharp examples for System:String Convert
Returns true if numeric; otherwise, returns false. Used for ordering alphanumeric strings.
// Copyright (c) 2012 Computer Technology Solutions, Inc. ALL RIGHTS RESERVED using System.Text.RegularExpressions; using System.Text; using System.Linq; using System.Globalization; using System.Collections.Generic; using System;/*from www . j a va 2s . c o m*/ public class Main{ /// <summary> /// Returns true if numeric; otherwise, returns false. /// Used for ordering alphanumeric strings. /// </summary> /// <param name="value"></param> /// <returns></returns> public static bool IsNumeric(this string value) { int number; return Int32.TryParse(value, out number); } }