| StateMachineTemplateIsValidIdentifier Method |
Checks whether the given name is a valid identifier
or a cardinal number.
Namespace: StaMaAssembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax public static bool IsValidIdentifier(
string name
)
Public Shared Function IsValidIdentifier (
name As String
) As Boolean
public:
static bool IsValidIdentifier(
String^ name
)
static member IsValidIdentifier :
name : string -> bool
Parameters
- name
- Type: SystemString
The String to be checked.
Return Value
Type:
Booleantrue if the given
name is a valid name for
a
State or
Transition.
Remarks
Valid identifiers must start with a letter, digit or underscore.
If the identifier starts with a number, the whole identifier must be a
cardinal number.
If the identifier starts with a letter, any combination of letters,
digits or underscores may follow.
If the identifier starts with an underscore, the first letter in the
string that is not an underscore must be a letter and the rest of the
identifier may be any combination of letters, digits or underscores.
See Also