From 45e187786130c12214defe8d78b8ef8c3944dd65 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Fri, 4 Dec 2020 17:11:46 +0000 Subject: [PATCH] Documented Helper functions --- .../HelperFunctions.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Advanced Software Engineering/Advanced Software Engineering/HelperFunctions.cs b/Advanced Software Engineering/Advanced Software Engineering/HelperFunctions.cs index 77485d2..cba9f8e 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/HelperFunctions.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/HelperFunctions.cs @@ -1,20 +1,36 @@ using System.Collections.Generic; namespace Advanced_Software_Engineering { - + /// + /// This class is a direct replacement to the dictionaries that were returned by . + /// This class provides better intraface to the output. + /// public class CommandAndParameterParserResult { private readonly string command; private readonly string[] parameters; + /// + /// Generates a new Result + /// + /// The command + /// The parameters public CommandAndParameterParserResult(string command, string[] parameters) { this.command = command; this.parameters = parameters; } + /// + /// Gets the command from the result + /// + /// the command public string getCommand() { return command; } + /// + /// Gets the command parameters + /// + /// command parameters public string[] getParameters() { return parameters; }