C# Program to Print the Current Assembly Name Using GetExecutingAssembly() Method
In C#, GetExecutingAssembly() method is the method of Assembly class. This method returns the assembly that contains the code that is currently executing. To use this method we have to use System.Reflection in our program.
public static System.Reflection.Assembly GetExecutingAssembly ();
It will return the current program assembly, version, culture, and PublicKeyToken.
Current assembly contains: main, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
main, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null