Skip to content

Instantly share code, notes, and snippets.

@kzu

kzu/CSharp.sbntxt

Created Sep 18, 2020
Embed
What would you like to do?
source-generators
/// <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