Code:foreach(string s in strFileType) { if(s.EndsWith(".doc")) _wordFile = s; if(s.EndsWith(".xsl")) _excelFile = s; if(s.EndsWith(".whatever")) _whateverFile = s; }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: Passing Array into ConstructorThreaded View
|
Click Here to Expand Forum to Full Width |