当前位置: 首页>>代码示例>>C#>>正文


C# FullNameCreator.CreateMethodFullName方法代码示例

本文整理汇总了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;
		}
开发者ID:GodLesZ,项目名称:ConfuserDeobfuscator,代码行数:20,代码来源:FullNameCreator.cs

示例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;
		}
开发者ID:KitoHo,项目名称:Reflexil,代码行数:10,代码来源:FullNameCreator.cs

示例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;
		}
开发者ID:EmilZhou,项目名称:dnlib,代码行数:13,代码来源:FullNameCreator.cs

示例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();
 }
开发者ID:n017,项目名称:dnlib,代码行数:15,代码来源:FullNameCreator.cs

示例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();
 }
开发者ID:n017,项目名称:dnlib,代码行数:23,代码来源:FullNameCreator.cs


注:本文中的dnlib.DotNet.FullNameCreator.CreateMethodFullName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。