Exemple #1
0
        /// <summary>
        /// Enumerates assemblies in the GAC returning their simple names.
        /// </summary>
        /// <param name="architectureFilter">Optional architecture filter.</param>
        /// <returns>Unique simple names of GAC assemblies.</returns>
        public static IEnumerable <string> GetAssemblySimpleNames(ImmutableArray <ProcessorArchitecture> architectureFilter = default(ImmutableArray <ProcessorArchitecture>))
        {
            var q = from nameObject in GetAssemblyObjects(partialNameFilter: null, architectureFilter: architectureFilter)
                    select FusionAssemblyIdentity.GetName(nameObject);

            return(q.Distinct());
        }
Exemple #2
0
        /// <summary>
        /// Enumerates assemblies in the GAC returning their simple names.
        /// </summary>
        /// <param name="architectureFilter">Optional architecture filter.</param>
        /// <returns>Unique simple names of GAC assemblies.</returns>
        public static IEnumerable <string> GetAssemblySimpleNames(Func <ProcessorArchitecture, bool> architectureFilter = null)
        {
            var q = from nameObject in GetAssemblyObjects(partialNameFilter: null, architectureFilter: architectureFilter)
                    select FusionAssemblyIdentity.GetName(nameObject);

            return(q.Distinct());
        }