public void AddCustomAttribute (Method meth, Constant constant, MetaDataElement element) { metaData.AddCustomAttribute (new CustomAttribute (element, meth, constant)); element.HasCustomAttr = true; }
internal DeclSecurity(MetaDataElement paren, ushort act, byte [] val) : base (paren, act) { byteVal = val; }
internal FieldMarshal(MetaDataElement field, NativeType nType) { this.field = field; this.nt = nType; tabIx = MDTable.FieldMarshal; }
internal BaseDeclSecurity(MetaDataElement paren, ushort act) { parent = paren; action = act; tabIx = MDTable.DeclSecurity; }
internal void SetEntryPoint(MetaDataElement ep) { entryPoint = ep; }
internal ConstantElem(MetaDataElement parent, Constant val) { this.parent = parent; cValue = val; tabIx = MDTable.Constant; sortTable = true; }
internal CustomAttribute(MetaDataElement paren, Method constrType, Constant val) { parent = paren; type = constrType; cVal = val; tabIx = MDTable.CustomAttribute; }
internal ManifestResource (ManifestResource mres) { mrName = mres.mrName; flags = mres.flags; this.rRef = rRef; this.fileOffset = fileOffset; this.resourceBytes = resourceBytes; }
public void AddCustomAttribute (Method meth, byte [] data, MetaDataElement element) { metaData.AddCustomAttribute (new CustomAttribute (element, meth, data)); }
internal DeclSecurity(MetaDataElement paren, ushort act) { parent = paren; action = act; tabIx = MDTable.DeclSecurity; throw(new NotYetImplementedException("Security ")); }
internal void WriteCodedIndex(CIx code, MetaDataElement elem) { metaData.WriteCodedIndex(code,elem,this); }
internal ExternClassRef(TypeAttr attrs, string nsName, string name, MetaDataElement declRef, MetaData md) : base(nsName,name,md) { externClass = new ExternClass(attrs,nameSpaceIx,nameIx,declRef); metaData.AddToTable(MDTable.ExportedType,externClass); }
public void AddDeclSecurity (SecurityAction sec_action, PEAPI.PermissionSet ps, MetaDataElement element) { metaData.AddDeclSecurity (new DeclSecurity_20 (element, (ushort) sec_action, ps)); }
public void AddDeclSecurity (SecurityAction sec_action, byte [] data, MetaDataElement element) { metaData.AddDeclSecurity (new DeclSecurity (element, (ushort) sec_action, data)); }
internal ExternClass(TypeAttr attr, uint nsIx, uint nIx, MetaDataElement paren) : base(nsIx,nIx) { flags = (uint)attr; parent = paren; tabIx = MDTable.ExportedType; }
public Catch(Type except, CILLabel handlerStart, CILLabel handlerEnd) : base(handlerStart,handlerEnd) { exceptType = except; }
internal FieldRef(MetaDataElement paren, string name, Type fType) : base(name, fType) { parent = paren; }
internal void ResolveType (MetaData md) { exceptType = ((Type) exceptType).GetTypeSpec (md); }
internal MethodRef(MetaDataElement paren, string name, Type retType, Type[] pars, bool varArgMeth, Type[] optPars, int gen_param_count) : base(name) { parent = paren; parList = pars; this.retType = retType; if (parList != null) numPars = (uint)parList.Length; if (varArgMeth) { optParList = optPars; if (optParList != null) numOptPars = (uint)optParList.Length; callConv = CallConv.Vararg; } this.gen_param_count = gen_param_count; }
internal TypeInstr(int inst, Type aType, MetaData md) : base(inst) { theType = aType.GetTypeSpec(md); size += 4; }
internal CustomAttribute(MetaDataElement paren, Method constrType, byte[] val) { parent = paren; type = constrType; tabIx = MDTable.CustomAttribute; byteVal = val; }
public ManifestResource(string name, uint flags, FileRef fileRef) { InitResource (name, flags); rRef = fileRef; }
internal void AddToTable(MDTable tableIx, MetaDataElement elem) { if (elem.Row > 0) { // Console.Out.WriteLine("ERROR - element already in table " + tableIx); return; } // updates Row field of the element // Console.WriteLine("Adding element to table " + (uint)tableIx); ArrayList table = GetTable(tableIx); elem.Row = (uint)table.Count + 1; table.Add(elem); }
public ManifestResource(string name, uint flags, FileRef fileRef, uint fileIx) { InitResource (name, flags); rRef = fileRef; fileOffset = fileIx; }
internal void WriteCodedIndex(CIx code, MetaDataElement elem, FileImage output) { uint ix = 0; if (elem != null) { ix = (elem.Row << CIxShiftMap[(uint)code]) | elem.GetCodedIx(code); // Console.WriteLine("coded index = " + ix + " row = " + elem.Row); //} else { // Console.WriteLine("elem for coded index is null"); } if (lgeCIx[(uint)code]) output.Write(ix); else output.Write((ushort)ix); }
public ManifestResource(string name, uint flags, AssemblyRef assemRef) { InitResource (name, flags); rRef = assemRef; }
internal DeclSecurity_20 (MetaDataElement paren, ushort act, PermissionSet ps) : base (paren, act) { this.ps = ps; }
internal ManifestResource (ManifestResource mres) { mrName = mres.mrName; flags = mres.flags; rRef = mres.rRef; fileOffset = mres.fileOffset; resourceBytes = mres.resourceBytes; }
private GenericParameter (MetaDataElement owner, MetaData metadata, short index, string name, GenericParamAttributes attr, bool nadda) { this.owner = owner; this.metadata = metadata; this.index = index; tabIx = MDTable.GenericParam; this.name = name; this.attr = attr; }
public ClassRef AddExternClass(string ns, string name, TypeAttr attrs, MetaDataElement declRef) { return new ExternClassRef (attrs, ns, name, declRef, metaData); }