Skip to content

Commit

Permalink
ROADMAP comment added
Browse files Browse the repository at this point in the history
  • Loading branch information
DBJDBJ committed Jan 14, 2024
1 parent d8e4567 commit 218decf
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/core/dbj_core_core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,21 @@ public sealed class DBJcore
/// enitrely different
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static string my_domain(bool exe_name_ = true )
public static string my_domain(bool exe_name_ = true)
{
/* <ROADMAP>
* System.AppDomain.CurrentDomain.FriendlyName
* - Returns the filename with extension (e.g. MyApp.exe).
System.Diagnostics.Process.GetCurrentProcess().ProcessName
- Returns the filename without extension (e.g. MyApp).
System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName
- Returns the full path and filename (e.g. C:\Examples\Processes\MyApp.exe).
You could then pass this into System.IO.Path.GetFileName()
or System.IO.Path.GetFileNameWithoutExtension()
to achieve the same results as the above.
*/
if (exe_name_ == true)
{
return System.AppDomain.CurrentDomain.FriendlyName;
Expand All @@ -80,14 +93,14 @@ public static string my_domain(bool exe_name_ = true )
/// aka this assembly
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static string ThisName(bool this_name = false )
public static string ThisName(bool this_name = false)
{
if (this_name == true)
{
return Assembly.GetExecutingAssembly().GetName().FullName;
}
return Assembly.GetCallingAssembly().GetName().FullName;

}

/// <summary>
Expand Down

0 comments on commit 218decf

Please sign in to comment.