本文整理汇总了C#中dnlib.DotNet.FullNameCreator.CreateMethodFullName方法的典型用法代码示例。如果您正苦于以下问题:C# FullNameCreator.CreateMethodFullName方法的具体用法?C# FullNameCreator.CreateMethodFullName怎么用?C# FullNameCreator.CreateMethodFullName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dnlib.DotNet.FullNameCreator
的用法示例。
在下文中一共展示了FullNameCreator.CreateMethodFullName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MethodFullName
/// <summary>
/// Returns the full name of a method
/// </summary>
/// <param name="declaringType">Declaring type full name or <c>null</c> if none</param>
/// <param name="name">Name of method or <c>null</c> if none</param>
/// <param name="methodSig">Method signature</param>
/// <param name="typeGenArgs">Type generic arguments or <c>null</c> if none</param>
/// <param name="methodGenArgs">Method generic arguments or <c>null</c> if none</param>
/// <returns>Method full name</returns>
public static string MethodFullName(string declaringType, string name, MethodSig methodSig, IList<TypeSig> typeGenArgs, IList<TypeSig> methodGenArgs) {
var fnc = new FullNameCreator(false, null);
if (typeGenArgs != null || methodGenArgs != null)
fnc.genericArguments = new GenericArguments();
if (typeGenArgs != null)
fnc.genericArguments.PushTypeArgs(typeGenArgs);
if (methodGenArgs != null)
fnc.genericArguments.PushMethodArgs(methodGenArgs);
fnc.CreateMethodFullName(declaringType, name, methodSig);
return fnc.Result;
}
示例2: MethodSigFullName
/// <summary>
/// Returns the full name of a method sig
/// </summary>
/// <param name="methodSig">Method sig</param>
/// <returns>Method sig full name</returns>
public static string MethodSigFullName(MethodSig methodSig) {
var fnc = new FullNameCreator(false, null);
fnc.CreateMethodFullName(null, null, methodSig, null);
return fnc.Result;
}
示例3: MethodBaseSigFullName
/// <summary>
/// Returns the full name of a sig
/// </summary>
/// <param name="declType">Declaring type or null</param>
/// <param name="name">Name or null</param>
/// <param name="sig">Method sig</param>
/// <param name="gppMethod">Owner method or null</param>
/// <returns>Sig full name</returns>
public static string MethodBaseSigFullName(string declType, string name, MethodBaseSig sig, MethodDef gppMethod) {
var fnc = new FullNameCreator(false, null);
fnc.CreateMethodFullName(declType, name, sig, gppMethod);
return fnc.Result;
}
示例4: MethodBaseSigFullNameSB
/// <summary>
/// Returns the full name of a sig
/// </summary>
/// <param name="declType">Declaring type or null</param>
/// <param name="name">Name or null</param>
/// <param name="sig">Method sig</param>
/// <param name="gppMethod">Owner method or null</param>
/// <param name="sb">String builder to use or null</param>
/// <returns>Sig full name</returns>
public static StringBuilder MethodBaseSigFullNameSB(string declType, string name, MethodBaseSig sig, MethodDef gppMethod, StringBuilder sb)
{
var fnc = new FullNameCreator(false, null, sb);
fnc.CreateMethodFullName(declType, name, sig, gppMethod);
return fnc.sb ?? new StringBuilder();
}
示例5: MethodFullNameSB
/// <summary>
/// Returns the full name of a method
/// </summary>
/// <param name="declaringType">Declaring type full name or <c>null</c> if none</param>
/// <param name="name">Name of method or <c>null</c> if none</param>
/// <param name="methodSig">Method signature</param>
/// <param name="typeGenArgs">Type generic arguments or <c>null</c> if none</param>
/// <param name="methodGenArgs">Method generic arguments or <c>null</c> if none</param>
/// <param name="gppMethod">Generic parameter owner method or <c>null</c></param>
/// <param name="sb">String builder to use or null</param>
/// <returns>Method full name</returns>
public static StringBuilder MethodFullNameSB(string declaringType, string name, MethodSig methodSig, IList<TypeSig> typeGenArgs, IList<TypeSig> methodGenArgs, MethodDef gppMethod, StringBuilder sb)
{
var fnc = new FullNameCreator(false, null, sb);
if (typeGenArgs != null || methodGenArgs != null)
fnc.genericArguments = new GenericArguments();
if (typeGenArgs != null)
fnc.genericArguments.PushTypeArgs(typeGenArgs);
if (methodGenArgs != null)
fnc.genericArguments.PushMethodArgs(methodGenArgs);
fnc.CreateMethodFullName(declaringType, name, methodSig, gppMethod);
return fnc.sb ?? new StringBuilder();
}