public long Convert2Long(String Str1)
{
try
{
long LngString = Int64.Parse(Str1);
return LngString;
}
catch (System.FormatException)
{
Console.WriteLine("Parameter is not in required format");
return -1;
}
}