CSharp.TryGetSimplifiedName Method

Namespace
Kampute.DocToolkit.Languages
Assembly
  • Kampute.DocToolkit.dll

Definition

Attempts to retrieve the simplified name of a system type.
public static bool TryGetSimplifiedName(IType type, [NotNullWhen(true)] out string simplifiedName)

Parameters

type IType
The system type to retrieve the simplified name for (such as "Int32" or "Boolean").
simplifiedName string
When this method returns, contains the simplified name of the type, if found; otherwise, null.

Returns

bool
true if the simplified name is found; otherwise, false.