Created
March 9, 2018 04:26
-
-
Save abc126/03b81eb01a1cc8eba0752ab582371f0c to your computer and use it in GitHub Desktop.
GetCurrentDllPath
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private string GetDllPath() | |
| { | |
| string strDLLPath = System.Reflection.Assembly.GetExecutingAssembly().CodeBase; | |
| strDLLPath = strDLLPath.Substring(8); | |
| return strDLLPath.Substring(0, strDLLPath.LastIndexOf("/") + 1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment