.NET Framework SDK Version 1.1 General July 19, 2004 Comments Off
While running through the examples in the Syngress C#.NET Web Developer’s Guide, I found it necessary to install the .NET SDK.
MSDN
It’s quite a monster download (108Mb) and slow installer.
Here’s my code:
using System;
namepsace FirstCSharpProgram
{
///
///
class FirstCSharpClass
{
static void Main ( string[] args )
{
try
{
/*
* Show when we wrote our first program on screen.
*/
DateTime today = DateTime.Now;
Console.WriteLine( “I wrote my first C# program at: ” + today.ToString();
if ( args.Length > 0 )
{
// Show an optional message on screen.
string msg = “You wanted to say: ” + args[0];
Console.WriteLine( exception.Message );
}
}
catch ( Exception exception )
{
// Display any errors on screen.
Console.WriteLine( exception.Message );
}
}
}
}
Wow!
No related posts.
Related posts brought to you by Yet Another Related Posts Plugin.