A high-level representation of a row in the File table
상속: IHasCustomAttribute, IImplementation, IManagedEntryPoint
예제 #1
0
 private void Load(FileDef obj)
 {
     if (obj == null)
     {
         return;
     }
     Add(obj.Flags);
     Add(obj.Name);
     Add(obj.HashValue);
     Add(obj.CustomAttributes);
 }
예제 #2
0
        private static ModuleDef FindModule(ModuleDef module, FileDef file)
        {
            if (module == null || file == null)
            {
                return(null);
            }
            if (UTF8String.CaseInsensitiveEquals(module.Name, file.Name))
            {
                return(module);
            }
            var asm = module.Assembly;

            if (asm == null)
            {
                return(null);
            }
            return(asm.FindModule(file.Name));
        }
예제 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">Name of resource</param>
 /// <param name="file">The file</param>
 /// <param name="flags">Resource flags</param>
 public LinkedResource(UTF8String name, FileDef file, ManifestResourceAttributes flags)
     : base(name, flags)
 {
     this.file = file;
 }