Exemple #1
0
 /// <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)));
 }
Exemple #2
0
 /// <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)));
 }