Accessing Assembly Information GUID in a C# Form Application -


I would like to use GUID in assembly information for use in my Microsoft Visual C # 2008 Express Edition project mutex Used to verify that only one instance of the application is running. How can the GUID be reached? I just need to use it in the program. Main (...) function. Thank you.

A similar question was asked on MSDN:

< P> Here the code is extracted:

  Public static tee gate suspensions feature & lt; T & gt; (Assembly assembly) where t: specialty {if (assembly == blank) empty return; Object [] attributes = assembly. GetCustomAttributes (typeof (t), true); If (Properties == empty) return tap; If (attributes. Length == 0) empty return; Return (t) characteristics [0]; }  

Some values ​​are also available through assembly type:


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -