I study C #, I read someone else's code and the question arises, what do {0} denote by such a symbol, is it an element of an array? Here is the whole piece

  string uri = string.Format(@"http://{0}/IntegrationServices/WorkWithLoadResource/ShippingLoad", ServerName); 

    1 answer 1

    This is a special construction for the format string, it makes sense only there (well, also in a couple of functions). In its place will be substituted the first argument of string.Format , counting from zero. In your case, ServerName . If there is no string in place of the ServerName , .ToString() will be called to get the string.

    In place of {1} , similarly, the second argument will be substituted, and so on.