using System;
public class Program
{
public static void Main()
var from = "02000000";
var to = "49999999";
var docNo = "1205311";
Console.WriteLine("Larger than? " + String.Compare(docNo, to)); // if result < 0 then string1 is less than string2
/*
Value Condition
Less than zero The first substring precedes the second substring in the sort order.
Zero The substrings occur in the same position in the sort order, or length is zero.
Greater than zero The first substring follows the second substring in the sort order.
*/
}