private static void Sample8() { const string src = "NumA + NumB = #{NumA+NumB}"; var nums = new Numbers { Num = new[] { "1", "2" }, NumA = 1, NumB = 2 }; var interpolatables = nums.InterpolateThis(src); Print(src, interpolatables); }
private static void Sample5() { const string src = "This is the first number #{Num[0]}"; var nums = new Numbers { Num = new string[] { "1", "2", "3" } }; var interpolated = nums.InterpolateThis(src); Print(src, interpolated); }