public static AssemblyEnumerator EnumAssemblies(AssemblyName filterName)
        {
            UnmanagedApi.IAssemblyName asmName = filterName != null ? filterName.IAssemblyName : null;
            UnmanagedApi.IAssemblyEnum asmEnum;
            UnmanagedApi.FusionNative.CreateAssemblyEnum(out asmEnum, IntPtr.Zero, asmName, (uint)UnmanagedApi.ASM_CACHE_FLAGS.GAC, IntPtr.Zero);

            return(new AssemblyEnumerator(asmEnum));
        }
Example #2
0
        public AssemblyName(UnmanagedApi.IAssemblyName assemblyName)
        {
            if (assemblyName == null)
            {
                throw new ArgumentNullException("assemblyName");
            }

            _assemblyName = assemblyName;
        }