static IAssemblyName GetMscorlib() { IAssemblyName filterAssemblyName; var hresult = FusionNative.CreateAssemblyNameObject(out filterAssemblyName, MscorlibStrongName, CreateAssemblyNameObjectFlags.CanofParseDispayName, 0); Assert.True(hresult, "Couldn't create assembly name object"); var assemblyEnum = GetGacAssemblyEnum(filterAssemblyName); IAssemblyName assemblyName; IApplicationContext applicationContext; hresult = assemblyEnum.GetNextAssembly(out applicationContext, out assemblyName, GetNextAssemblyFlags.None); hresult = assemblyEnum.GetNextAssembly(out applicationContext, out assemblyName, GetNextAssemblyFlags.None); Assert.True(hresult, "Couldn't read next assembly name object"); return(assemblyName); }
public AssemblyName(string fullName) { HRESULT.ThrowOnFailure(FusionNative.CreateAssemblyNameObject(out _assemblyName, null, 0, IntPtr.Zero)); this.FullName = fullName; }
public AssemblyName() { HRESULT.ThrowOnFailure(FusionNative.CreateAssemblyNameObject(out _assemblyName, null, 0, IntPtr.Zero)); }