using System.Collections.Generic;
public static void Main()
var content = new ContentClass(){
var properties = typeof(ContentClass).GetProperties().ToList();
foreach(var property in properties)
Console.WriteLine("Name: "+ property.Name);
Console.WriteLine("Value: "+ property.GetValue(content).ToString());
public class ContentClass{
public string Layout {get; set;}
public string Header {get; set;}
public string Footer {get; set;}
public string Body {get; set;}