Thursday, January 18, 2007

C# .Net 2.0 - get application name

Problem:
How to console print a program application name?


Solution:


System.Console.WriteLine
("Usage {0}", AppDomain.CurrentDomain.SetupInformation.ApplicationName);

1 comment:

Anonymous said...

People should read this.