Skip to content

Instantly share code, notes, and snippets.

@cadwallion
Created February 11, 2012 04:22
Show Gist options
  • Save cadwallion/1796129 to your computer and use it in GitHub Desktop.
Save cadwallion/1796129 to your computer and use it in GitHub Desktop.
Proper Conventions according to Cad
using System;
class NamedWelcome {
static void Main(string[] args) {
string name;
if (args.Length == 0) {
Console.WriteLine("What is your name: ");
name = Console.ReadLine();
} else {
name = args[0];
}
Console.WriteLine("Hello, {0}!", name);
Console.WriteLine("Welcome to the C# Train");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment