/// <summary> /// Gets the RiotArhiveFile associated with the specified path. /// </summary> /// <param name="path">The path of the RiotArchiveFile to get.</param> /// <param name="file">When this method returns, if the key is found, contains the RiotArchiveFile associated with the specified key; otherwise, null.</param> /// <returns><c>true</c> if this RiotArchive contains an element with the specified key; otherwise, <c>false</c>.</returns> public bool TryGetValue(string path, out RiotArchiveFile file) { RiotArchiveFile outFile = null; var result = Archives.Any(a => a.TryGetValue(path, out outFile)); file = outFile; return(result); }
/// <summary> /// Gets the RiotArhiveFile associated with the specified path. /// </summary> /// <param name="path">The path of the RiotArchiveFile to get.</param> /// <param name="file">When this method returns, if the key is found, contains the RiotArchiveFile associated with the specified key; otherwise, null.</param> /// <returns><c>true</c> if this RiotArchive contains an element with the specified key; otherwise, <c>false</c>.</returns> public bool TryGetValue(string path, out RiotArchiveFile file) { return(files.TryGetValue(path.ToLowerInvariant(), out file)); }
/// <summary> /// Gets the RiotArhiveFile associated with the specified path. /// </summary> /// <param name="path">The path of the RiotArchiveFile to get.</param> /// <param name="file">When this method returns, if the key is found, contains the RiotArchiveFile associated with the specified key; otherwise, null.</param> /// <returns><c>true</c> if this RiotArchive contains an element with the specified key; otherwise, <c>false</c>.</returns> public bool TryGetValue(string path, out RiotArchiveFile file) { RiotArchiveFile outFile = null; var result = Archives.Any(a => a.TryGetValue(path, out outFile)); file = outFile; return result; }
/// <summary> /// Gets the RiotArhiveFile associated with the specified path. /// </summary> /// <param name="path">The path of the RiotArchiveFile to get.</param> /// <param name="file">When this method returns, if the key is found, contains the RiotArchiveFile associated with the specified key; otherwise, null.</param> /// <returns><c>true</c> if this RiotArchive contains an element with the specified key; otherwise, <c>false</c>.</returns> public bool TryGetValue(string path, out RiotArchiveFile file) { return files.TryGetValue(path.ToLowerInvariant(), out file); }