public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(Guid.NewGuid());
    }
}

Pasted 1 day ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        string myString = "Hy";
        string myString2 = "Hy;another";
        foreach (string f in myString.Split(';'))
        {
            Console.WriteLine(f);
        }

Pasted 4 days ago

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

Pasted 4 days ago

namespace ConsoleApp3
{
    public static class Ext
    {
        public static void Populate(this long[] arr, long value)
        {
            for (int i = 0; i < arr.Length; i++)
                arr[i] = value;
        }
    }

Pasted 9 days ago

class Program
{
    static void Main()
    {
    Regex regex = new Regex(@"[\d\s]+");
    Match match = regex.Match("Dot 5\n 5 Perls");
    if (match.Success)
    {
        Console.WriteLine(match.Value);
    }

Pasted 9 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(new int[]{1,2,3}.Take(4).ToArray().Lenght);
    }
}

Pasted 10 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(new int[]{1,2,3}.Take(4).ToArray());
    }
}

Pasted 10 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(new int[]{1,2,3}.ToArray());
    }
}

Pasted 10 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(DateTime.ParseExact("23/12/2016 17:30:09", "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture));
    }
}

Pasted 11 days ago

public static class Test
{
    public static void Main()
    {
        var data = new[]
        {
            new { x = false, y = "hello" },
            new { x = true, y = "abc" },
            new { x = false, y = "def" },
            new { x = true, y = "world" }

Pasted 16 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World! {0}", Math.Round(1.0, 2).ToString("F"));
    }
}

Pasted 16 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World!", Math.Round(1.0, 2).ToString());
    }
}

Pasted 16 days ago