المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : string.Concat & MessageBox



C# Programming
11-07-2009, 03:01 PM
I need to pass a few strings & vars to MessageBox. The following works, but is there a better way than creating the object?

Object[] warning = new Object[] { "File " fileName " needed from " file******** " is missing." };
MessageBox.Show(string.Concat(warning));

Thanks.