This repository has been archived by the owner on Jun 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8949bf4
commit c472769
Showing
7 changed files
with
38 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
using System; | ||
using System.Reflection; | ||
|
||
public static class Core | ||
internal static class Core | ||
{ | ||
public static string Name => Assembly.GetCallingAssembly().GetName().Name; | ||
public static string Version => Assembly.GetCallingAssembly().GetName().Version.ToString(); | ||
public static int VersionInt => int.Parse(Version.Replace(".", "")); | ||
public static void LogWithVersion(Action<string> logger, string message) => logger($"{Core.Name}[{Core.Version}]: {message}"); | ||
internal static string Name => Assembly.GetCallingAssembly().GetName().Name; | ||
internal static string Version => Assembly.GetCallingAssembly().GetName().Version.ToString(); | ||
internal static int VersionInt => int.Parse(Version.Replace(".", "")); | ||
internal static void LogWithVersion(Action<string> logger, string message) => logger($"{Core.Name}[{Core.Version}]: {message}"); | ||
} |
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.