Compare Page Revisions
« Older Revision - Back to Page History - Newer Revision »
Table of Contents [Hide/Show]
Application Product Name Application Version EXE Full Name Other App Info Company Name Current Assembly Name Current Namespace and Class Name Current Procedure Name Current Procedure Name, Fully Qualified VB.NET C# Calling Method Calling Assembly Debug Print Current Thread
System.Windows.Forms.Application.ProductName
System.Windows.Forms.Application.ProductVersion
Application.ExecutablePath
System.Reflection.Assembly.GetExecutingAssembly().Location
Microsoft.VisualBasic
using Microsoft.VisualBasic.ApplicationServices; using System.Reflection; AssemblyInfo info = new AssemblyInfo(Assembly.GetExecutingAssembly()); // now use properties of the info variable
using Microsoft.VisualBasic.ApplicationServices; using System.Reflection; AssemblyInfo info = new AssemblyInfo(Assembly.GetExecutingAssembly()); string c2 = info.CompanyName;
System.Reflection.Assembly.GetExecutingAssembly().FullName
System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.FullName
System.Reflection.MethodInfo.GetCurrentMethod().Name
Dim info As System.Reflection.MethodInfo = System.Reflection.MethodInfo.GetCurrentMethod() System.Diagnostics.Debug.Print(info.DeclaringType.FullName & "." & info.Name)
System.Reflection.MethodInfo info = System.Reflection.MethodInfo.GetCurrentMethod(); System.Diagnostics.Debug.Print(info.DeclaringType.FullName + "." + info.Name);
System.Diagnostics.StackFrame sf = new System.Diagnostics.StackFrame(1); string result = sf.GetMethod().Name;
StackFrame sf = new System.Diagnostics.StackFrame(1); string result = sf.GetMethod().Module.Assembly.Location;
System.Diagnostics.Debug.Print( System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.FullName + "." + System.Reflection.MethodInfo.GetCurrentMethod().Name + " executing on Thread " + System.Threading.Thread.CurrentThread.ManagedThreadId.ToString());
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.