Examples of csharp(c#) with Source code
Examples of c sharp(c#) with SOURCE CODE
Sunday, 13 June 2010
Get the type of variable
using System;
class Vars
{
static void Main()
{
var x = 100;
Console.WriteLine(x.GetType());
var s = "Hello";
Console.WriteLine(s.GetType());
var b = true;
Console.WriteLine(b.GetType());
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment