4 Overview of Command Methods
Craig Oates edited this page 4 years ago

There is nothing special about command-methods. They are nothing more than the methods found in ConsoleCommands. With that said, they do have a particular characteristic beyond the average method. They double-up as the commands the end-user enters in the console's prompt. From your point-of-view, though, they are normal methods - like any other. I call them "Command-Methods" to help separate your code from Console.Waterworks (C.W) -- that's all. If you prefer to call them methods (or functions), please do.

Here is a diagram to help show the "position" of the command-methods within the project.

command-methods overview

As an aside, the term command-methods is a C# quirk. I am aware F# is more precise with its use of "method" and "function". But, "command-methods" were already established before I began learning F#. So, I am using "command-methods" to remain consistent with the main C.W. repositories and terminology. I am well aware "command-functions" is a more accurate description.