Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <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;
 }
Ejemplo n.º 4
0
 /// <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);
 }