Merge pull request #4222 from alexanderkyte/fix_mismatch_com_disabled
[mono.git] / mcs / class / System.IO.Compression / corefx / ZipArchiveEntry.Mono.cs
1 using System.Diagnostics;
2
3 namespace System.IO.Compression
4 {
5         public partial class ZipArchiveEntry
6         {
7                 internal static readonly ZipVersionMadeByPlatform CurrentZipPlatform = Path.PathSeparator == '/' ? 
8                         ZipVersionMadeByPlatform.Unix : ZipVersionMadeByPlatform.Windows;
9
10                 internal static string ParseFileName(string path, ZipVersionMadeByPlatform madeByPlatform)
11                 {
12                         switch (madeByPlatform) {
13                         case ZipVersionMadeByPlatform.Windows:
14                                 return GetFileName_Windows(path);
15                         case ZipVersionMadeByPlatform.Unix:
16                                 return GetFileName_Unix(path);
17                         default:
18                                 return ParseFileName (path, CurrentZipPlatform);
19                         }
20                 }
21         }
22 }