1
public static string GetFileExtends(string filename)
2
{
3
string ext = null;
4
if (filename.IndexOf('.') > 0)
5
{
6
string[] fs = filename.Split('.');
7
ext = fs[fs.Length - 1];
8
}
9
return ext;
10
}
public static string GetFileExtends(string filename)2
{3
string ext = null;4
if (filename.IndexOf('.') > 0)5
{6
string[] fs = filename.Split('.');7
ext = fs[fs.Length - 1];8
}9
return ext;10
}


浙公网安备 33010602011771号