Get Assembly Info - CSharp System.Reflection

CSharp examples for System.Reflection:Assembly

Description

Get Assembly Info

Demo Code


using System.Reflection;
using System.Linq;
using System.IO;/*from   ww w  .j a  v a 2  s.  com*/
using System.Diagnostics;
using System;

public class Main{
        public static FileVersionInfo GetAssemblyInfo(this Type type)
        {
            return FileVersionInfo.GetVersionInfo(type.Assembly.Location);
        }
}

Related Tutorials