public class DotNetPad
{
    public static void Main(string[] args)
    {
        Console.WriteLine(("00100032663").TrimStart('0'));
    }
}

Pasted 4 hours ago

SHA1 c = SHA1.Create();
byte[] b = c.ComputeHash(Encoding.UTF8.GetBytes("google.com"));
long value = BitConverter.ToInt64(b, 12);
value = IPAddress.HostToNetworkOrder(value);
Debug.WriteLine(value);

Pasted 12 hours ago

System.Security.Cryptography.SHA1 c = System.Security.Cryptography.SHA1.Create();
byte[] b = c.ComputeHash(Encoding.UTF8.GetBytes("google.com"));
long value = BitConverter.ToInt64(b, 12);
value = IPAddress.HostToNetworkOrder(value);
Debug.WriteLine(value);

Pasted 12 hours ago

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

Pasted 12 hours ago

struct NotImmutable
{
    public int X;
}
public class DotNetPad
{
    public static void Main(string[] args)
    {
        var foo = new NotImmutable();
        foo.X = 5;

Pasted 1 day ago

struct NotImmutable
{
    int X;
}
public class DotNetPad
{
    public static void Main(string[] args)
    {
        var foo = new NotImmutable();
        foo.X = 5;

Pasted 1 day ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
string lst="123";
 int ItemId = int.Parse(lst.ToString());
        Console.WriteLine(ItemId );
    }
}

Pasted 7 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
string lst="123";
 int ItemId = Convert.ToInt32(lst.ToString());
        Console.WriteLine(ItemId );
    }
}

Pasted 7 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
//DateTime date1 = new DateTime(2015, 08, 20, 0, 0, 0);
      DateTime date1 = new DateTime(DateTime.Now.Date.Year, 08, 19, 0, 0, 0);   
      int result = DateTime.Compare(date1, DateTime.Now.Date);
  Console.WriteLine(result );
 Console.WriteLine(DateTime.Now.Date.Year);
    }

Pasted 8 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
//DateTime date1 = new DateTime(2015, 08, 20, 0, 0, 0);
      DateTime date1 = new DateTime(DateTime.Now.Date.Year, 12, 31, 0, 0, 0);   
      int result = DateTime.Compare(date1, DateTime.Now.Date);
  Console.WriteLine(result );
 Console.WriteLine(DateTime.Now.Date.Year);
    }

Pasted 8 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
//DateTime date1 = new DateTime(2015, 08, 20, 0, 0, 0);
      DateTime date1 = new DateTime(2015, 12, 31, 0, 0, 0);   
      int result = DateTime.Compare(date1, DateTime.Now.Date);
  Console.WriteLine(result );
 Console.WriteLine(DateTime.Now.Date.Year);
    }

Pasted 8 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
//DateTime date1 = new DateTime(2015, 08, 20, 0, 0, 0);
      DateTime date1 = new DateTime(2015, 12, 31, 0, 0, 0);   
      int result = DateTime.Compare(date1, DateTime.Now.Date);
  Console.WriteLine(result );
 Console.WriteLine(DateTime.Now);
    }

Pasted 8 days ago