Web Log of Aleksey Nudelman: Thoughts on Software Architecture

Analysis and Review of Microsoft Technologies for IT Managers, Architects and Developers

Home » Archives » November 2004 » WinDev C# puzzle

[Previous entry: "C# Tutorial, Code Optimization tips."] [Next entry: "UCLA extension is offering (almost) free software"]

11/12/2004: "WinDev C# puzzle"


This is a great WinDev puzzle that was published on Frank Redmond's blog http://blogs.msdn.com/frankred/:

Replace the TBD comment with a single line of code that causes this program to display "Win-Dev!" You cannot modify any of the existing code, or add code above or below the existing code. You can only write one line of code in place of the TBD comment and you cannot use the Console class.

class App {
static void Main() {
// TBD
}
}

sealed class Internal {
sealed class Private {
static void PrintMessage( string s1, string s2 ) {
System.Console.WriteLine(s1 + "-" + s2);
}
}
}





  Home
  Archives
Phishing Inspector is  available

Copyright© 2006 Aleksey Nudelman