private Mime() { #if NET_2_0 Aliases = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); SubClasses = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalPatternsShort = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalPatternsLong = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalLiterals = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalSufPref = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); #else Aliases = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture)); SubClasses = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture)); GlobalPatternsShort = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture)); GlobalPatternsLong = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture)); GlobalLiterals = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture)); GlobalSufPref = new NameValueCollection(new CaseInsensitiveHashCodeProvider(), new Comparer(System.Globalization.CultureInfo.CurrentUICulture)); #endif Matches80Plus = new ArrayList(); MatchesBelow80 = new ArrayList(); FDOMimeConfigReader fmcr = new FDOMimeConfigReader(); int buffer_length = fmcr.Init(); if (buffer_length >= 32) { buffer = new byte [buffer_length]; mime_available = true; } }
private Mime() { Aliases = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); SubClasses = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalPatternsShort = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalPatternsLong = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalLiterals = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); GlobalSufPref = new NameValueCollection(StringComparer.CurrentCultureIgnoreCase); Matches80Plus = new ArrayList(); MatchesBelow80 = new ArrayList(); FDOMimeConfigReader fmcr = new FDOMimeConfigReader(); int buffer_length = fmcr.Init(); if (buffer_length >= 32) { buffer = new byte [buffer_length]; mime_available = true; } }
private Mime () { Aliases = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); SubClasses = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalPatternsShort = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalPatternsLong = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalLiterals = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalSufPref = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); Matches80Plus = new ArrayList (); MatchesBelow80 = new ArrayList (); FDOMimeConfigReader fmcr = new FDOMimeConfigReader (); int buffer_length = fmcr.Init (); if (buffer_length >= 32) { buffer = new byte [buffer_length]; mime_available = true; } }
private Mime () { #if NET_2_0 Aliases = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); SubClasses = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalPatternsShort = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalPatternsLong = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalLiterals = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); GlobalSufPref = new NameValueCollection (StringComparer.CurrentCultureIgnoreCase); #else Aliases = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture)); SubClasses = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture)); GlobalPatternsShort = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture)); GlobalPatternsLong = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture)); GlobalLiterals = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture)); GlobalSufPref = new NameValueCollection (new CaseInsensitiveHashCodeProvider (), new Comparer (System.Globalization.CultureInfo.CurrentUICulture)); #endif Matches80Plus = new ArrayList (); MatchesBelow80 = new ArrayList (); FDOMimeConfigReader fmcr = new FDOMimeConfigReader (); int buffer_length = fmcr.Init (); if (buffer_length >= 32) { buffer = new byte [buffer_length]; mime_available = true; } }