//function to convert int32 to list
let rec convertToList x xs=
    match (x=0) with                 
    | false -> convertToList (x/10) (x%10 :: xs)
    | true -> xs
//function to reverse a list
let rec reverseList xs ys=
    match (xs) with
    | [] -> ys
    | x::xs -> reverseList (xs) (x::ys )

Pasted 1 day ago

//function to convert int32 to list
let rec convertToList x xs=
    match (x=0) with                 
    | false -> convertToList (x/10) (x%10 :: xs)
    | true -> xs
//function to reverse a list
let rec reverseList xs ys=
    match (xs) with
    | [] -> ys
    | x::xs -> reverseList (xs) (x::ys )

Pasted 1 day ago

let rec main a b largestPalindrome=
    match (a>=100 , b>=a, (isPalindrome (a*b))) with
    | true, true,true ->  if (a*b > largestPalindrome) then 
                                main (a-1) (b-1) (a*b)
    | true, true, false -> main (a-1) (b-1) largestPalindrome
    | false, false, _ -> largestPalindrome
    | _ -> failwith "buggy code"  

Pasted 1 day ago

//function to convert int32 to list
let rec convertToList x xs=
    match (x=0) with                 
    | false -> convertToList (x/10) (x%10 :: xs)
    | true -> xs
//function to reverse a list
let rec reverseList xs ys=
    match (xs) with
    | [] -> ys
    | x::xs -> reverseList (xs) (x::ys )

Pasted 1 day ago

let rec isPalindrome xs ys = 
    match (convertToList xs [] = reverseList (convertToList ys []) []) with
    | true ->  true
    | false -> false

Pasted 1 day ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var nullI = (int?)null;
        var i = 1;
        var nullIConverter = TypeDescriptor.GetConverter(typeof(int?));
        var iConverter = TypeDescriptor.GetConverter(typeof(int));
        var nullIString = nullIConverter.ConvertToString(nullI);
        var iString = iConverter.ConvertToString(i);

Pasted 2 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var nullI = (int?)null;
        var i = 1;
        var nullIConverter = TypeDescriptor.GetConverter(nullI.GetType());
        var iConverter = TypeDescriptor.GetConverter(i.GetType());
        var nullIString = nullIConverter.ConvertToString(nullI);
        var iString = iConverter.ConvertToString(i);

Pasted 2 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var nullI = (int?)null;
        var i = 1;
        var nullIConverter = TypeDescriptor.GetConverter(nullI);
        var iConverter = TypeDescriptor.GetConverter(i);
        var nullIString = nullIConverter.ConvertToString(nullI);
        var iString = iConverter.ConvertToString(i);

Pasted 2 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var nullI = (int?)null;
        var i = 1;
        var nullIConverter = TypeDescriptor.GetConverter(nullI);
        var iConverter = TypeDescriptor.GetConverter(i);
        var nullIString = nullIConverter.ConvertToString(nullI);
        var iString = iConverter.ConvertToString(i);

Pasted 2 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var nullI = (int?)null;
        var i = 1;
        var nullIConverter = TypeDescriptor.GetConverter(nullId);
        var iConverter = TypeDescriptor.GetConverter(i);
        var nullIString = nullIConverter.ConvertToString(nullI);
        var iString = iConverter.ConvertToString(i);

Pasted 2 days ago

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

Pasted 2 days ago

public class DotNetPad
{
    public static void Main(string[] args)
    {
        var a = 5756743858178;
        var b = 5756744606340;
        var ts = new TimeSpan(b - a);
        Console.WriteLine("Seconds Elapsed: {0}", ts.TotalSeconds);
    }
}

Pasted 3 days ago