.NET Framework SDK Version 1.1

July 19, 2004 | In Developer

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
{
///


/// My first C# class. Contains the program entry point.
///

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!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Pownce
  • Technorati
  • YahooMyWeb

No Comments yet

Sorry, the comment form is closed at this time.

© 2008 Martin Crockett. Sitemap. RSS Entries and comments feeds. Valid XHTML and CSS. ^Top^