public ArgumentImplementation(int index, string name, string description, Type type, GetPossibilitiesMethodDelegate getPossibilitiesMethod, GetStringForPossibilityMethodDelegate getStringForPossibilityMethod) { this.index = index; this.Name = name; this.Description = description; this.Type = type; this.getPossibilitiesMethod = getPossibilitiesMethod; this.getStringForPossibilityMethod = getStringForPossibilityMethod; }
protected void addArgument(string name, string description, Type type, GetPossibilitiesMethodDelegate getPossibilitiesMethod, GetStringForPossibilityMethodDelegate getStringForPossibilityMethod) => arguments.Add(new ArgumentImplementation(arguments.Count, name, description, type, getPossibilitiesMethod, getStringForPossibilityMethod));