public void Add(Mask.Mask mask, Func <SuccededResult, string> func) { if (this.Container.Any(x => x.Key.RegexString == mask.RegexString)) { throw new ArgumentException(); } this.Container.Add(mask, func); }
public SuccededResult(Mask commandMask, string fromString, Dictionary <string, string> matchedResult) : base(commandMask, fromString) { this.MatchedResult = matchedResult; }
public Func <SuccededResult, string> this[Mask.Mask mask] { set { this.Container[mask] = value; } get { return(this.Container[mask]); } }