In VS 2015 / VB.NET 14 you can do some pretty cool stuff with string interoplation for example:
Dim str1 As String = "Hello"
Dim dict1 As New Dictionary(Of String, String)
dict1.Add("Area", "World")
Dim output As String = $"{str1} {dict1("Area")}"
Console.WriteLine(output)
>Hello World
But what if the string format is variable/configurable? How can I do something like this:
Dim str1 As String = "Hello"
Dim dict1 As New Dictionary(Of String, String)
dict1.Add("Area", "World")
Dim format = getStringFormat()
Dim output As String = $format
Console.WriteLine(output)
>World Hello
I am using .NET 4