While we appreciate comments from our users, please follow our posting guidelines. Have you tried the Cyotek Forums for support from Cyotek and the community?

Styling with Markdown is supported

Original Comment


Richard Moss

# Reply


This is because the sample is using auto generated properties. Essentially, the C# 3+ compiler will let you just declare a property and it will take care of the backing field and body.

In the example you quoted, line 74 is this:

public string[] Arguments { get; protected set; }

In order to make it compile, you'll need to "expand" this, for example:

private string[] _arguments;

public string[] Arguments
  get { return _arguments; }
  set { _arguments = value; }

As far as I know, there's no way of making auto generated properties work in that version of Visual Studio, sorry.

Regards; Richard Moss