BalloonsPop.Validation.UserInputValidator.IsValidCommand C# (CSharp) Метод

IsValidCommand() приватный статический Метод

Returns true if the player move matches the specified pattern.
private static IsValidCommand ( string playerMove ) : bool
playerMove string The player move as string.
Результат bool
        private static bool IsValidCommand(string playerMove)
        {
            return ValidationRegex.Match(playerMove).Length > 0;
        }