private static void Sample3() { var data = new Data { Id = "1", Name = "Karthik Anant", Email = "*****@*****.**" }; const string str = "Id: #{Id, Name: #{Name, Email: #{Email"; var interpolated = data.InterpolateThis(str); Print(str, interpolated); }
private static void Sample1() { var data = new Data { Id = "1", Name = "Karthik Anant", Email = "*****@*****.**" }; var interpolated = "Id: #{Id}, Name: #{Name}, Email: #{Email}".InterpolateUsing(data); Print("Id: #{Id}, Name: #{Name}, Email: #{Email}", interpolated); }