public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("{0:0%} {0}", 0.55m);
    }
}

Pasted 1 day ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("{0:0%} {0:d}", 0.55m);
    }
}

Pasted 1 day ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World!");
    }
}

Pasted 1 day ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(decimal.Parse("10%");
    }
}

Pasted 3 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(decimal.Parse("1.0"));
    }
}

Pasted 3 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var g = new Guid();
            var date1 = DateTime.Now.Date;
            int a1 = 100;
            var hash1 = BitConverter.GetBytes(new { g, date1.Date.Ticks, a1 }.GetHashCode());
            var date2 = DateTime.Now.Date;
            int a2 = 100;

Pasted 3 days ago

namespace MultithreadingApplication
{
   class ThreadCreationProgram
   {
      public static void CallToChildThread()
      {
         try
         {
            Console.WriteLine("Child thread starts");
            // do some work, like counting to 10

Pasted 4 days ago

public class DotNetPad
{
    private static Func<bool?, bool> a = x => (x == null) || (!(x == null) && x != true);
    private static Func<bool?, bool> b = x => x != true;
    public static void Main(string[] args)
    {
        WriteResults(null);
        WriteResults(true);
        WriteResults(false);
    }

Pasted 8 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var list = new List<int>();
        list.push(5);
        list.push(7);
        bla(list);
        Console.WriteLine(list);
        Console.WriteLine("Hello World!");

Pasted 9 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
var d = Math.Min( 100 / 8 * 1024 * 1024, 786432 )
        Console.WriteLine(d);
    }
}

Pasted 10 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {        string x = "select * from test where t.char = 'x'";
            string x1 = HttpUtility.HtmlEncode(x);
        Console.WriteLine(x1);
    }
}

Pasted 11 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        string x = "select * from test where t.char = 'x'";
        string x1 = HttpUtility.HtmlEncode(x);
    }
}

Pasted 11 days ago