Language

ICSharpHelper.Identifier メソッド

定義

オーバーロード

Name 説明
Identifier(String, ICollection<String>)

スコープに固有の指定した文字列から有効な C# 識別子を生成します。

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

スコープに固有の指定した文字列から有効な C# 識別子を生成します。

Identifier<T>(String, T, IDictionary<String,T>, Nullable<Boolean>)

スコープに固有の指定した文字列から有効な C# 識別子を生成します。

Identifier(String, ICollection<String>)

ソース:
ICSharpHelper.cs

スコープに固有の指定した文字列から有効な C# 識別子を生成します。

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

パラメーター

name
String

ベース識別子の名前。

scope
ICollection<String>

スコープ内識別子の一覧。

戻り値

識別子。

適用対象

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

ソース:
ICSharpHelper.cs
ソース:
ICSharpHelper.cs
ソース:
ICSharpHelper.cs
ソース:
ICSharpHelper.cs
ソース:
ICSharpHelper.cs
ソース:
ICSharpHelper.cs

スコープに固有の指定した文字列から有効な C# 識別子を生成します。

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

パラメーター

name
String

ベース識別子の名前。

scope
ICollection<String>

スコープ内識別子の一覧。

capitalize
Nullable<Boolean>

true 最初の文字を大文字に変換する必要がある場合。最初の文字を小文字に変換する必要があるかどうかを false します。

戻り値

識別子。

適用対象

Identifier<T>(String, T, IDictionary<String,T>, Nullable<Boolean>)

ソース:
ICSharpHelper.cs
ソース:
ICSharpHelper.cs
ソース:
ICSharpHelper.cs

スコープに固有の指定した文字列から有効な C# 識別子を生成します。

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

型パラメーター

T

パラメーター

name
String

ベース識別子の名前。

value
T

識別子に関連付けられる値。

scope
IDictionary<String,T>

スコープ内識別子の一覧。

capitalize
Nullable<Boolean>

true 最初の文字を大文字に変換する必要がある場合。最初の文字を小文字に変換する必要があるかどうかを false します。

戻り値

識別子。

適用対象