Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created May 4, 2012 07:20
Show Gist options
  • Save tnngo2/2592834 to your computer and use it in GitHub Desktop.
Save tnngo2/2592834 to your computer and use it in GitHub Desktop.
using System;
namespace Theory_9
{
class Employee
{
static void Main(string[] args)
{
int empId = 10;
string empName = "Patrick";
char? role = null;
Console.WriteLine("Employee ID: " + empId);
Console.WriteLine("Employee name: " + empName);
if (role.HasValue == true)
{
Console.WriteLine("Role: " + role);
}
else
{
Console.WriteLine("Role: null");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment