/// <summary> /// Called when a new parse strategy has been created for use /// </summary> /// <param name="parseStrategy">The parse strategy.</param> /// <returns>ParseStrategy.</returns> protected virtual ParseStrategy OnParseStrategyCreated(ParseStrategy parseStrategy) { var parseStrategyCreatedEventArgs = new ParseStrategyCreatedEventArgs(parseStrategy.ThrowIfArgumentNull(nameof(parseStrategy))); ParseStrategyCreated?.Invoke(this, parseStrategyCreatedEventArgs); return(parseStrategyCreatedEventArgs.ParseStrategy); }
/// <summary> /// Initializes a new instance of the <see cref="ParseStrategyCreatedEventArgs" /> class. /// </summary> /// <param name="parseStrategy">The parse strategy.</param> public ParseStrategyCreatedEventArgs(ParseStrategy parseStrategy) { ParseStrategy = parseStrategy.ThrowIfArgumentNull(nameof(parseStrategy)); }