StoryTeller.Engine.Sets.SetVerificationGrammar.Before C# (CSharp) Method

Before() public method

public Before ( GrammarAction action ) : void
action GrammarAction
return void
        public void Before(GrammarAction action)
        {
            _befores.Add(action);
        }

Usage Example

        public SetVerificationGrammar Grammar()
        {
            var grammar = new SetVerificationGrammar(_leafName, _title, _comparer)
            {
                Description = _description,
                Ordered = _ordered
            };
            if (_dataSource != null)
            {
                grammar.Before((step, context) => { context.CurrentObject = _dataSource(context); });
            }

            return grammar;
        }
All Usage Examples Of StoryTeller.Engine.Sets.SetVerificationGrammar::Before