Beispiel #1
0
        /// <summary>
        /// Gets an entry by its type.
        /// </summary>
        /// <param name="id">
        /// The type of the entry.
        /// </param>
        /// <returns>
        /// The requested entry, or <see langword="null"/> if the entry could not be found.
        /// </returns>
        public IMAGE_RESOURCE_DIRECTORY_ENTRY?GetIdEntry(RESOURCE_DIRECTORY_TYPE id)
        {
            if (!IdEntries.Any(e => e.NameType == id))
            {
                return(null);
            }

            return(IdEntries.Single(e => e.NameType == id));
        }
Beispiel #2
0
        /// <summary>
        /// Gets an entry by its type.
        /// </summary>
        /// <param name="id">
        /// The type of the entry.
        /// </param>
        /// <returns>
        /// The requested entry, or <see langword="null"/> if the entry could not be found.
        /// </returns>
        public IMAGE_RESOURCE_DIRECTORY_ENTRY? GetIdEntry(RESOURCE_DIRECTORY_TYPE id)
        {
            if (!IdEntries.Any(e => e.NameType == id))
            {
                return null;
            }

            return IdEntries.Single(e => e.NameType == id);
        }