dimanche 5 avril 2020

AppDomain vs. System.Reflection when finding application name and version

In trying to obtain .exe version number and name I see that we could use different ways such as:

AppDomain.CurrentDomain.FriendlyName //shows: myapp.exe

or use

System.Reflection.Assembly.GetExecutingAssembly().GetName().Name //shows myapp

Both classes produce the "almost: the same name, but my question is:

What is the difference between these two? Why use one over the other (forget performance)?

Thanks.





Aucun commentaire:

Enregistrer un commentaire