本文整理汇总了C#中System.Reflection.MethodInfo.NameString方法的典型用法代码示例。如果您正苦于以下问题:C# MethodInfo.NameString方法的具体用法?C# MethodInfo.NameString怎么用?C# MethodInfo.NameString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Reflection.MethodInfo
的用法示例。
在下文中一共展示了MethodInfo.NameString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MethodInfo_MakeGenericMethod
public static void MethodInfo_MakeGenericMethod(MethodInfo methodInfo, Type[] typeArguments)
{
String declaringTypeName = methodInfo.DeclaringTypeNameString();
if (declaringTypeName == null)
return;
String methodName = methodInfo.NameString();
if (methodName == null)
return;
String typeArgumentStrings = typeArguments.GenericTypeArgumentStrings();
if (typeArgumentStrings == null)
return;
ReflectionEventSource.Log.MethodInfo_MakeGenericMethod(declaringTypeName, methodName, typeArgumentStrings);
}
示例2: MethodInfo_ReturnType
public static void MethodInfo_ReturnType(MethodInfo methodInfo)
{
String declaringTypeName = methodInfo.DeclaringTypeNameString();
if (declaringTypeName == null)
return;
String methodName = methodInfo.NameString();
if (methodName == null)
return;
ReflectionEventSource.Log.MethodInfo_ReturnType(declaringTypeName, methodName);
}
示例3: MethodInfo_CreateDelegate
public static void MethodInfo_CreateDelegate(MethodInfo methodInfo, Type delegateType, Object target)
{
String declaringTypeName = methodInfo.DeclaringTypeNameString();
if (declaringTypeName == null)
return;
String methodName = methodInfo.NameString();
if (methodName == null)
return;
String delegateTypeName = delegateType.NameString();
if (delegateType == null)
return;
ReflectionEventSource.Log.MethodInfo_CreateDelegate(declaringTypeName, methodName, delegateTypeName);
}