日期:2014-05-16 浏览次数:20735 次
if (fName == ".txt" || fName == ".doc" || fName == ".xls" || fName == ".ppt" || fName==".pdf")
{
}
readonly IList<String> fNames = new List<String>() {
".doc",
".txt",
".xls",
".ppt",
".pdf"
};
if(fNames.Contains(fName)){
// todo:
}