IdentifierSymbol.AddAlias(String) Method

Definition

Adds an alias.

C#
public void AddAlias(string alias);

Parameters

alias
String

The alias to add.

Remarks

You can add multiple aliases. Aliases are most often used to provide shorthand alternatives.

Applies to

Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)