ICSharpHelper.Identifier Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Identifier(String, ICollection<String>) |
Generates a valid C# identifier from the specified string unique to the scope. |
Identifier(String, ICollection<String>, Nullable<Boolean>) |
Generates a valid C# identifier from the specified string unique to the scope. |
Identifier<T>(String, T, IDictionary<String,T>, Nullable<Boolean>) |
Generates a valid C# identifier from the specified string unique to the scope. |
Identifier(String, ICollection<String>)
- Source:
- ICSharpHelper.cs
Generates a valid C# identifier from the specified string unique to the scope.
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
Parameters
- name
- String
The base identifier name.
- scope
- ICollection<String>
A list of in-scope identifiers.
Returns
The identifier.
Applies to
Identifier(String, ICollection<String>, Nullable<Boolean>)
- Source:
- ICSharpHelper.cs
- Source:
- ICSharpHelper.cs
- Source:
- ICSharpHelper.cs
- Source:
- ICSharpHelper.cs
Generates a valid C# identifier from the specified string unique to the scope.
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
Parameters
- name
- String
The base identifier name.
- scope
- ICollection<String>
A list of in-scope identifiers.
true
if the first letter should be converted to uppercase;
false
if the first letter should be converted to lowercase;
Returns
The identifier.
Applies to
Identifier<T>(String, T, IDictionary<String,T>, Nullable<Boolean>)
- Source:
- ICSharpHelper.cs
Generates a valid C# identifier from the specified string unique to the scope.
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
Type Parameters
- T
Parameters
- name
- String
The base identifier name.
- value
- T
The value that will be associated with the identifier.
- scope
- IDictionary<String,T>
A list of in-scope identifiers.
true
if the first letter should be converted to uppercase;
false
if the first letter should be converted to lowercase;
Returns
The identifier.
Applies to
Entity Framework