-
Notifications
You must be signed in to change notification settings - Fork 1
Installation & Setup
George Njeri (Swagfin) edited this page Jul 23, 2025
·
1 revision
dotnet add package ObjectSemantics
Or via the NuGet Package Manager UI in Visual Studio.
Define your model:
public class Student
{
public string StudentName { get; set; }
public int Age { get; set; }
}
Create a template and render it:
var student = new Student { StudentName = "Alice", Age = 22 };
var template = new ObjectSemanticsTemplate
{
FileContents = "Student: {{ StudentName }}, Age: {{ Age }}"
};
string result = template.Map(student);
// Output: "Student: Alice, Age: 22"