Writing a .NET DLL How to Find Application.ProductName?
Application.ProductName
EDIT:Obviously, importing Windows.Formsmight solve the problem, but my DLL has nothing to do with Windows Forms.
Windows.Forms
The class Applicationjust needs a link to System.Window.Forms. Thus, an easier way is to add this link to * .dll and use the property.
Application
System.Window.Forms
, Windows Forms, AssemblyProductAttribute , . , , Assembly.GetEntryAssembly, .
Assembly.GetEntryAssembly
#. VB .. ++
System.Windows.Forms.Application.ProductName
Source: https://habr.com/ru/post/1740461/More articles:How are 6 trits equal to 9.5 bits? - bitswhy does internet explorer display my page in javascript back? - javascriptPHP - Нельзя использовать Heredoc в методе класса? - phpAn XmlDocument type was not found, although I referenced System.XML? - referenceview in ASP.NET MVC application - asp.netHow long does MySQL take to create an index - mysqlCannot convert value in attribute '[attr]' to an object of type 'System.Windows.TemplateBindingExtension' - wpfUsing parameter values in an SQL statement - sqlWhy does my homespun sizeof operator need cast char *? - cCreating a java library - javaAll Articles