Skip to content

Instantly share code, notes, and snippets.

@MahdiKarimipour
Created August 15, 2022 03:53
Show Gist options
  • Save MahdiKarimipour/ee265dd5fab8fae345547e22110cdb4d to your computer and use it in GitHub Desktop.
Save MahdiKarimipour/ee265dd5fab8fae345547e22110cdb4d to your computer and use it in GitHub Desktop.
Partial C# Class for T4 Templates
public partial class MessageReceivedTemplate
{
private TemplateModel Model { get; set; }
public MessageReceivedTemplate(string name)
{
Model = new TemplateModel()
{
Name = name,
};
}
private class TemplateModel
{
public string Name { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment