2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / ilasm / codegen / FileRef.cs
1 //
2 // Mono.ILASM.FileRef
3 //
4 // Author(s):
5 //  Jackson Harper (jackson@ximian.com)
6 //
7 // Copyright 2004 Novell, Inc (http://www.novell.com)
8 //
9
10
11 using System;
12
13 namespace Mono.ILASM {
14
15         public class FileRef {
16
17                 private string name;
18                 private byte [] hash;
19                 private bool has_metadata;
20                 private bool entrypoint;
21
22                 public FileRef (string name, byte[] hash, bool has_metadata, bool entrypoint)
23                 {
24                         this.name = name;
25                         this.hash = hash;
26                         this.has_metadata = has_metadata;
27                         this.entrypoint = entrypoint;
28                 }
29
30                 public void Resolve (CodeGen codegen)
31                 {
32                         codegen.PEFile.AddFile (name, hash, has_metadata, entrypoint);
33                 }
34         }
35 }
36