UidDisplay Pennington.ApiMetadata
Formatting helpers for xmldocid strings (the T:, M:, P:… prefixed uids Roslyn emits).
Methods
Shorten
#public static string Shorten(string uid);Returns the short, unqualified display name for a uid (e.g. T:System.Collections.Generic.List`1 → List), stripping the kind prefix, any parameter list, the namespace, and generic-arity markers.
Parameters
uidstring
Returns
stringPennington.ApiMetadata.UidDisplay
namespace Pennington.ApiMetadata;
/// Formatting helpers for xmldocid strings (the T:, M:, P:… prefixed uids Roslyn emits).
public class UidDisplay
{
/// Returns the short, unqualified display name for a uid (e.g. T:System.Collections.Generic.List`1 → List), stripping the kind prefix, any parameter list, the namespace, and generic-arity markers.
public static string Shorten(string uid);
}