static private void Header ()
{
- Assembly a = Assembly.GetExecutingAssembly ();
- AssemblyName an = a.GetName ();
-
- object [] att = a.GetCustomAttributes (typeof (AssemblyTitleAttribute), false);
- string title = ((att.Length > 0) ? ((AssemblyTitleAttribute) att [0]).Title : "Mono Set Registry");
-
- att = a.GetCustomAttributes (typeof (AssemblyCopyrightAttribute), false);
- string copyright = ((att.Length > 0) ? ((AssemblyCopyrightAttribute) att [0]).Copyright : "");
-
- Console.WriteLine ("{0} {1}", title, an.Version.ToString ());
- Console.WriteLine ("{0}{1}", copyright, Environment.NewLine);
+ Console.WriteLine (new AssemblyInfo ().ToString ());
}
static private void Help ()