E.g. in the following example:
string commandText = string.Format("Select * from {0}", filename);
How does the above work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
{0}is a placeholder for the first object given; in this case that’sfilename, so it will insert whatever filename evaluates to in place of{0}. Similarly, of course you could use{1}and that would be replaced with the second parameter passed, etc.