本文整理汇总了C#中System.Reflection.Emit.SignatureHelper.InternalGetSignature方法的典型用法代码示例。如果您正苦于以下问题:C# SignatureHelper.InternalGetSignature方法的具体用法?C# SignatureHelper.InternalGetSignature怎么用?C# SignatureHelper.InternalGetSignature使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Reflection.Emit.SignatureHelper
的用法示例。
在下文中一共展示了SignatureHelper.InternalGetSignature方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetSignatureToken
// Define signature token given a signature helper. This will define a metadata
// token for the signature described by SignatureHelper.
/// <include file='doc\ModuleBuilder.uex' path='docs/doc[@for="ModuleBuilder.GetSignatureToken"]/*' />
public SignatureToken GetSignatureToken(SignatureHelper sigHelper)
{
BCLDebug.Log("DYNIL","## DYNIL LOGGING: ModuleBuilder.GetSignatureToken( )");
int sigLength;
byte[] sigBytes;
if (sigHelper == null)
{
throw new ArgumentNullException("sigHelper");
}
// get the signature in byte form
sigBytes = sigHelper.InternalGetSignature(out sigLength);
return new SignatureToken(TypeBuilder.InternalGetTokenFromSig(this, sigBytes, sigLength), this);
}
示例2: GetSignatureToken
[System.Security.SecuritySafeCritical] // auto-generated
public SignatureToken GetSignatureToken(SignatureHelper sigHelper)
{
// Define signature token given a signature helper. This will define a metadata
// token for the signature described by SignatureHelper.
if (sigHelper == null)
{
throw new ArgumentNullException("sigHelper");
}
Contract.EndContractBlock();
int sigLength;
byte[] sigBytes;
// get the signature in byte form
sigBytes = sigHelper.InternalGetSignature(out sigLength);
return new SignatureToken(TypeBuilder.GetTokenFromSig(GetNativeHandle(), sigBytes, sigLength), this);
}
示例3: GetSignatureToken
public SignatureToken GetSignatureToken(SignatureHelper sigHelper)
{
int num;
if (sigHelper == null)
{
throw new ArgumentNullException("sigHelper");
}
byte[] signature = sigHelper.InternalGetSignature(out num);
return new SignatureToken(TypeBuilder.GetTokenFromSig(this.GetNativeHandle(), signature, num), this);
}