You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingStateless;/// <summary>/// Методы расширения машины состояний./// </summary>publicstaticclassStateMachineExtensions{/// <summary>/// Проверить что можно выполнить переход и сделать его./// </summary>/// <param name="machine">Объект машины состояний.</param>/// <param name="trigger">Переход.</param>/// <returns>TRUE если переход произошёл.</returns>publicstaticboolFireIfCan<TState,TTrigger>(thisStateMachine<TState,TTrigger>machine,TTriggertrigger){if(machine.CanFire(trigger)){machine.Fire(trigger);returntrue;}returnfalse;}}
Cant understand that was stopping factor from adding the same extension to the library itself, seems weird to me
The text was updated successfully, but these errors were encountered:
Thats why I need to manually add code like this:
Cant understand that was stopping factor from adding the same extension to the library itself, seems weird to me
The text was updated successfully, but these errors were encountered: