Created
September 18, 2020 13:00
-
-
Save kzu/7b4b29035a1cfd453782393ec18a88fa to your computer and use it in GitHub Desktop.
source-generators
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
/// <summary> | |
/// Provides access to the current assembly information as pure constants, | |
// without requiring reflection. | |
/// </summary> | |
partial class ThisAssembly | |
{ | |
/// <summary> | |
/// Gets the assembly metadata. | |
/// </summary> | |
public static partial class Metadata | |
{ | |
{{~ for md in Metadata ~}} | |
public const string {{ md.Key }} = @"{{ md.Value }}"; | |
{{~ end ~}} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment