Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Assigning Null value to Nullable Integer Values

$
0
0
using System.IO;
using System;

class Program
{
    static void Main()
    {
        int? i;

            string st="NULL";
            i= Convert.ToInt32(st);
            Console.WriteLine(i);

    }
}

Why I'm getting an exception?


Viewing all articles
Browse latest Browse all 9386

Trending Articles