Click or drag to resize
StaMaStateMachineTemplateIsValidIdentifier Method
Checks whether the given name is a valid identifier or a cardinal number.

Namespace: StaMa
Assembly: StaMa (in StaMa.dll) Version: 2.3.1.7
Syntax
public static bool IsValidIdentifier(
	string name
)

Parameters

name
Type: SystemString
The String to be checked.

Return Value

Type: Boolean
true 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