本文整理匯總了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;
}