This must be a very basic question but after stumbling on internet for a while, i am unable to understand the code below. I am very new to c#. what exactly is the use case of []
(square brackets)
class Options
{
[Option('f', "file", Required = true,
HelpText = "Input file to be processed.")]
public string InputFile { get; set; }
[Option('o', "outprefix", Required = true,
HelpText = "Output prefix for file.")]
public string OutPreFix { get; set; }
[Option('v', "verbose", DefaultValue = false,
HelpText = "Prints all messages to standard output.")]
public bool Verbose { get; set; }
[ParserState]
public IParserState LastParserState { get; set; }
[HelpOption]
public string GetUsage()
{
return HelpText.AutoBuild(this, (HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current));
}
}