本文整理汇总了C#中IRuntimeMethodInfo类的典型用法代码示例。如果您正苦于以下问题:C# IRuntimeMethodInfo类的具体用法?C# IRuntimeMethodInfo怎么用?C# IRuntimeMethodInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRuntimeMethodInfo类属于命名空间,在下文中一共展示了IRuntimeMethodInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EnsureNonNullMethodInfo
internal static IRuntimeMethodInfo EnsureNonNullMethodInfo(IRuntimeMethodInfo method)
{
if (method == null)
{
throw new ArgumentNullException(null, Environment.GetResourceString("Arg_InvalidHandle"));
}
return method;
}
示例2: RuntimeMethodHandle
internal RuntimeMethodHandle(IRuntimeMethodInfo method)
{
m_value = method;
}
示例3: Signature
[System.Security.SecuritySafeCritical] // auto-generated
public Signature(IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
{
GetSignature(null, 0, new RuntimeFieldHandleInternal(), methodHandle, declaringType);
}
示例4: GetSignature
private extern void GetSignature(
void* pCorSig, int cCorSig,
RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType);
示例5: StripMethodInstantiation
[System.Security.SecuritySafeCritical] // auto-generated
internal static IRuntimeMethodInfo StripMethodInstantiation(IRuntimeMethodInfo method)
{
IRuntimeMethodInfo strippedMethod = method;
StripMethodInstantiation(method, JitHelpers.GetObjectHandleOnStack(ref strippedMethod));
return strippedMethod;
}
示例6: GetTypicalMethodDefinition
[System.Security.SecuritySafeCritical] // auto-generated
internal static IRuntimeMethodInfo GetTypicalMethodDefinition(IRuntimeMethodInfo method)
{
if (!IsTypicalMethodDefinition(method))
GetTypicalMethodDefinition(method, JitHelpers.GetObjectHandleOnStack(ref method));
return method;
}
示例7: IsTypicalMethodDefinition
internal extern static bool IsTypicalMethodDefinition(IRuntimeMethodInfo method);
示例8: GetSpecialSecurityFlags
static extern internal uint GetSpecialSecurityFlags(IRuntimeMethodInfo method);
示例9: GetSecurityFlags
[System.Security.SecurityCritical] // auto-generated
internal static INVOCATION_FLAGS GetSecurityFlags(IRuntimeMethodInfo handle)
{
return (INVOCATION_FLAGS)RuntimeMethodHandle.GetSpecialSecurityFlags(handle);
}
示例10: GetName
[System.Security.SecurityCritical] // auto-generated
internal static string GetName(IRuntimeMethodInfo method)
{
string name = RuntimeMethodHandle.GetName(method.Value);
GC.KeepAlive(method);
return name;
}
示例11: GetMethodDef
internal extern static int GetMethodDef(IRuntimeMethodInfo method);
示例12: GetSlot
[System.Security.SecurityCritical] // auto-generated
internal static int GetSlot(IRuntimeMethodInfo method)
{
Contract.Requires(method != null);
int slot = RuntimeMethodHandle.GetSlot(method.Value);
GC.KeepAlive(method);
return slot;
}
示例13: GetDeclaringType
[System.Security.SecuritySafeCritical] // auto-generated
internal static RuntimeType GetDeclaringType(IRuntimeMethodInfo method)
{
RuntimeType type = RuntimeMethodHandle.GetDeclaringType(method.Value);
GC.KeepAlive(method);
return type;
}
示例14: ConstructInstantiation
[System.Security.SecuritySafeCritical] // auto-generated
internal static string ConstructInstantiation(IRuntimeMethodInfo method, TypeNameFormatFlags format)
{
string name = null;
ConstructInstantiation(EnsureNonNullMethodInfo(method), format, JitHelpers.GetStringHandleOnStack(ref name));
return name;
}
示例15: HasMethodInstantiation
[System.Security.SecuritySafeCritical] // auto-generated
internal static bool HasMethodInstantiation(IRuntimeMethodInfo method)
{
bool fRet = RuntimeMethodHandle.HasMethodInstantiation(method.Value);
GC.KeepAlive(method);
return fRet;
}