Application instantiates class (RoleAccessMgr) from dll, which in turn instantiates singleton subclass (RoleLookup) at which point I need to see the application name - to avoid requiring it in every instance of RoleAccessMgr.
Here is my function - all I get is the name of the dll.
Any ideas?
Here is my function - all I get is the name of the dll.
Code:
Public Shared Function GetCallingAssemblyName() As String
Dim str As String = System.Reflection.Assembly.GetCallingAssembly.ToString()
Return str.Substring(0, InStr(str, ",") - 1)
End Function
Any ideas?