New test.
[mono.git] / mcs / tools / security / setreg.cs
old mode 100755 (executable)
new mode 100644 (file)
index 123bc03..bd380c0
@@ -21,17 +21,7 @@ namespace Mono.Tools {
 
                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 ()