本文整理汇总了C#中IMethodSignature.GetSentinel方法的典型用法代码示例。如果您正苦于以下问题:C# IMethodSignature.GetSentinel方法的具体用法?C# IMethodSignature.GetSentinel怎么用?C# IMethodSignature.GetSentinel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IMethodSignature
的用法示例。
在下文中一共展示了IMethodSignature.GetSentinel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetMethodRefSig
public MethodRefSig GetMethodRefSig(IMethodSignature meth)
{
MethodReference methodRef = meth as MethodReference;
if (methodRef != null && methodRef.GenericParameters.Count > 0)
return GetMethodDefSig (meth);
MethodRefSig methSig = new MethodRefSig ();
CompleteMethodSig (meth, methSig);
int sentinel = meth.GetSentinel ();
if (sentinel >= 0)
methSig.Sentinel = sentinel;
if ((meth.CallingConvention & MethodCallingConvention.C) != 0)
methSig.CallingConvention |= 0x1;
else if ((meth.CallingConvention & MethodCallingConvention.StdCall) != 0)
methSig.CallingConvention |= 0x2;
else if ((meth.CallingConvention & MethodCallingConvention.ThisCall) != 0)
methSig.CallingConvention |= 0x3;
else if ((meth.CallingConvention & MethodCallingConvention.FastCall) != 0)
methSig.CallingConvention |= 0x4;
return methSig;
}