Sdílet prostřednictvím


ICSharpHelper.Identifier Metoda

Definice

Přetížení

Identifier(String, ICollection<String>)

Vygeneruje platný identifikátor jazyka C# ze zadaného řetězce, který je jedinečný pro obor.

Identifier(String, ICollection<String>, Nullable<Boolean>)

Vygeneruje platný identifikátor jazyka C# ze zadaného řetězce, který je jedinečný pro obor.

Identifier(String, ICollection<String>)

Vygeneruje platný identifikátor jazyka C# ze zadaného řetězce, který je jedinečný pro obor.

public string Identifier (string name, System.Collections.Generic.ICollection<string> scope = default);
abstract member Identifier : string * System.Collections.Generic.ICollection<string> -> string
Public Function Identifier (name As String, Optional scope As ICollection(Of String) = Nothing) As String

Parametry

name
String

Název základního identifikátoru.

scope
ICollection<String>

Seznam identifikátorů v oboru.

Návraty

Identifikátor.

Platí pro

Identifier(String, ICollection<String>, Nullable<Boolean>)

Vygeneruje platný identifikátor jazyka C# ze zadaného řetězce, který je jedinečný pro obor.

public string Identifier (string name, System.Collections.Generic.ICollection<string>? scope = default, bool? capitalize = default);
abstract member Identifier : string * System.Collections.Generic.ICollection<string> * Nullable<bool> -> string
Public Function Identifier (name As String, Optional scope As ICollection(Of String) = Nothing, Optional capitalize As Nullable(Of Boolean) = Nothing) As String

Parametry

name
String

Název základního identifikátoru.

scope
ICollection<String>

Seznam identifikátorů v oboru.

capitalize
Nullable<Boolean>

true pokud by první písmeno mělo být převedeno na velká písmena; false pokud by první písmeno mělo být převedeno na malá písmena;

Návraty

Identifikátor.

Platí pro