本文整理汇总了C#中MonoDevelop.Ide.TypeSystem.OutputSettings.Highlight方法的典型用法代码示例。如果您正苦于以下问题:C# OutputSettings.Highlight方法的具体用法?C# OutputSettings.Highlight怎么用?C# OutputSettings.Highlight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop.Ide.TypeSystem.OutputSettings
的用法示例。
在下文中一共展示了OutputSettings.Highlight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetParameterString
protected override string GetParameterString (IParameterizedMember member, IParameter parameter, OutputSettings settings)
{
if (parameter == null)
return "";
var result = new StringBuilder ();
if (settings.IncludeParameterName) {
if (settings.IncludeModifiers) {
if (parameter.IsOut) {
result.Append (settings.EmitKeyword ("out"));
}
if (parameter.IsRef) {
result.Append (settings.EmitKeyword ("ref"));
}
if (parameter.IsParams) {
result.Append (settings.EmitKeyword ("params"));
}
}
result.Append (GetTypeReferenceString (parameter.Type, settings));
result.Append (" ");
if (settings.HighlightName) {
result.Append (settings.EmitName (parameter, settings.Highlight (Format (FilterName (parameter.Name)))));
} else {
result.Append (settings.EmitName (parameter, Format (FilterName (parameter.Name))));
}
} else {
result.Append (GetTypeReferenceString (parameter.Type, settings));
}
return result.ToString ();
}