本文整理汇总了C#中PEAPI.MetaDataElement类的典型用法代码示例。如果您正苦于以下问题:C# MetaDataElement类的具体用法?C# MetaDataElement怎么用?C# MetaDataElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
MetaDataElement类属于PEAPI命名空间,在下文中一共展示了MetaDataElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddCustomAttribute
public void AddCustomAttribute (Method meth, Constant constant, MetaDataElement element)
{
metaData.AddCustomAttribute (new CustomAttribute (element, meth, constant));
element.HasCustomAttr = true;
}
示例2: DeclSecurity
internal DeclSecurity(MetaDataElement paren, ushort act, byte [] val)
: base (paren, act)
{
byteVal = val;
}
示例3: FieldMarshal
internal FieldMarshal(MetaDataElement field, NativeType nType)
{
this.field = field;
this.nt = nType;
tabIx = MDTable.FieldMarshal;
}
示例4: BaseDeclSecurity
internal BaseDeclSecurity(MetaDataElement paren, ushort act)
{
parent = paren;
action = act;
tabIx = MDTable.DeclSecurity;
}
示例5: SetEntryPoint
internal void SetEntryPoint(MetaDataElement ep)
{
entryPoint = ep;
}
示例6: ConstantElem
internal ConstantElem(MetaDataElement parent, Constant val)
{
this.parent = parent;
cValue = val;
tabIx = MDTable.Constant;
sortTable = true;
}
示例7: CustomAttribute
internal CustomAttribute(MetaDataElement paren, Method constrType,
Constant val) {
parent = paren;
type = constrType;
cVal = val;
tabIx = MDTable.CustomAttribute;
}
示例8: AddCustomAttribute
public void AddCustomAttribute (Method meth, byte [] data, MetaDataElement element)
{
metaData.AddCustomAttribute (new CustomAttribute (element, meth, data));
}
示例9: DeclSecurity
internal DeclSecurity(MetaDataElement paren, ushort act) {
parent = paren;
action = act;
tabIx = MDTable.DeclSecurity;
throw(new NotYetImplementedException("Security "));
}
示例10: WriteCodedIndex
internal void WriteCodedIndex(CIx code, MetaDataElement elem) {
metaData.WriteCodedIndex(code,elem,this);
}
示例11: ExternClassRef
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);
}
示例12: AddDeclSecurity
public void AddDeclSecurity (SecurityAction sec_action, PEAPI.PermissionSet ps, MetaDataElement element)
{
metaData.AddDeclSecurity (new DeclSecurity_20 (element, (ushort) sec_action, ps));
}
示例13: ExternClass
internal ExternClass(TypeAttr attr, uint nsIx, uint nIx,
MetaDataElement paren) : base(nsIx,nIx)
{
flags = (uint)attr;
parent = paren;
tabIx = MDTable.ExportedType;
}
示例14: FieldRef
internal FieldRef(MetaDataElement paren, string name, Type fType) : base(name, fType)
{
parent = paren;
}
示例15: MethodRef
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;
}