// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Reflection; class MainClass { public static void Main(string[] args) { Assembly asm = Assembly.GetExecutingAssembly(); object[] attrs = asm.GetCustomAttributes(false); for(int i = 0; i < attrs.Length; i++) { if(attrs[i] is AssemblyTitleAttribute) { AssemblyTitleAttribute title = (AssemblyTitleAttribute)attrs[i]; Console.WriteLine(title.Title); } } } }