using System;
using System.Web;
public class Test
{
public static void Main()
string test1 = "1' or 1=1;--";
decimal dec = Convert.ToDecimal(test1);
//string backToLife = Decimal.ToString(Convert.ToDecimal(test1));
Console.WriteLine("original: " + test1);
Console.WriteLine("Converted to Decimal: " + dec);
//Console.WriteLine("Converted back 2 string: " + Decimal.toString(dec));
}