本文整理匯總了C#中System.Compiler.TypeNode.GetFullUnmangledNameWithTypeParameters方法的典型用法代碼示例。如果您正苦於以下問題:C# TypeNode.GetFullUnmangledNameWithTypeParameters方法的具體用法?C# TypeNode.GetFullUnmangledNameWithTypeParameters怎麽用?C# TypeNode.GetFullUnmangledNameWithTypeParameters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Compiler.TypeNode
的用法示例。
在下文中一共展示了TypeNode.GetFullUnmangledNameWithTypeParameters方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: WriteTemplate
/// <summary>
/// This is used for explicitly implemented interfaces to convert the template to the format used in the
/// comments file.
/// </summary>
/// <param name="type">The explicitly implemented interface type</param>
/// <param name="sb">The string builder to which the name is written</param>
private static void WriteTemplate(TypeNode eiiType, StringBuilder sb)
{
// !EFW Use this instead of the template name as the type parameter may be different in the user's
// code (i.e. Collection<TControl> instead of Collection<T>.
string eiiClean = eiiType.GetFullUnmangledNameWithTypeParameters();
eiiClean = eiiClean.Replace('.', '#');
eiiClean = eiiClean.Replace('+', '#'); // !EFW - Treat nested class separators like periods
eiiClean = eiiClean.Replace(',', '@'); // Change the separator between parameters
eiiClean = eiiClean.Replace('<', '{'); // Change the parameter brackets
eiiClean = eiiClean.Replace('>', '}');
sb.Append(eiiClean);
}