/// <summary> /// Creates a single-module assembly. /// </summary> /// <param name="peImage"> /// Manifest module image. /// </param> /// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> /// <exception cref="BadImageFormatException">The PE image format is invalid.</exception> public static AssemblyMetadata CreateFromImage(IEnumerable <byte> peImage) { return(Create(ModuleMetadata.CreateFromImage(peImage))); }
/// <summary> /// Creates a single-module assembly. /// </summary> /// <param name="peImage"> /// Manifest module image. /// </param> /// <exception cref="ArgumentNullException"><paramref name="peImage"/> is null.</exception> public static AssemblyMetadata CreateFromImage(ImmutableArray <byte> peImage) { return(Create(ModuleMetadata.CreateFromImage(peImage))); }