Trying to pass the values but not making progress.
Scenario : Have a public constant string as below.
public const string ImageFile = @"http://xyz.com/scom/{0}?type={1}&wid={2}"; I will then get the relevant values required for 0,1,2 that is required for above.
Question is how do I pass the values I have for 0,1,2 to the above const string?
My end result should be something like
string mySTring = "http://xyz.com/scom/123?type=jpg&wid=200" Please suggest.
Thanks.
string.Format(i.e.{0}) without knowing aboutstring.Format?Console.WriteLineallow for composite formatting. In other words,string.formatcan be used implicitly in many if not most cases. Many developers can use string.format and never even know it. msdn.microsoft.com/en-us/library/txafckwd.aspx