Debian Codegraph @

external/api-doc-tools/mdoc/Mono.Documentation/Updater/Formatters/DefaultAttributeValueFormatter.cs

raw
1 namespace Mono.Documentation.Updater
2 {
3 /// <summary>The final value formatter in the pipeline ... if no other formatter formats the value,
4 /// then this one will serve as the default implementation.</summary>
5 class DefaultAttributeValueFormatter : AttributeValueFormatter
6 {
7 public override bool TryFormatValue (object v, ResolvedTypeInfo type, out string returnvalue)
8 {
9 returnvalue = "(" + MDocUpdater.GetDocTypeFullName (type.Reference) + ") " + MDocUpdater.FilterSpecialChars(v.ToString ());
10 return true;
11 }
12 }
13 }