CSharp.TryGetOperatorSymbol Method

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

Definition

Attempts to get the operator symbol for a given operator name.
public static bool TryGetOperatorSymbol(string operatorName, [NotNullWhen(true)] out string symbol)

Parameters

operatorName string
The operator name to look up (such as "Equality" or "Addition").
symbol string
When this method returns, contains the operator symbol if found; otherwise, null.

Returns

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