Rename function

This commit is contained in:
Bond-009 2020-01-08 18:14:01 +01:00
parent 277e9d2b0b
commit b1af8a4178

View file

@ -18,7 +18,7 @@ namespace MediaBrowser.MediaEncoding.Probing
if (result.Format != null && result.Format.Tags != null) if (result.Format != null && result.Format.Tags != null)
{ {
result.Format.Tags = ConvertDictionaryToCaseInSensitive(result.Format.Tags); result.Format.Tags = ConvertDictionaryToCaseInsensitive(result.Format.Tags);
} }
if (result.Streams != null) if (result.Streams != null)
@ -28,7 +28,7 @@ namespace MediaBrowser.MediaEncoding.Probing
{ {
if (stream.Tags != null) if (stream.Tags != null)
{ {
stream.Tags = ConvertDictionaryToCaseInSensitive(stream.Tags); stream.Tags = ConvertDictionaryToCaseInsensitive(stream.Tags);
} }
} }
} }
@ -98,7 +98,7 @@ namespace MediaBrowser.MediaEncoding.Probing
/// </summary> /// </summary>
/// <param name="dict">The dict.</param> /// <param name="dict">The dict.</param>
/// <returns>Dictionary{System.StringSystem.String}.</returns> /// <returns>Dictionary{System.StringSystem.String}.</returns>
private static Dictionary<string, string> ConvertDictionaryToCaseInSensitive(IReadOnlyDictionary<string, string> dict) private static Dictionary<string, string> ConvertDictionaryToCaseInsensitive(IReadOnlyDictionary<string, string> dict)
{ {
return new Dictionary<string, string>(dict, StringComparer.OrdinalIgnoreCase); return new Dictionary<string, string>(dict, StringComparer.OrdinalIgnoreCase);
} }