array of strings as property in C#
<p>Consider the code below,</p>

<pre><code>private void Convert_Click(Object sender, RoutedEventArgs e)
{
          string[] strCmdLineParams = { "str1", "str2", "str3" };

          FormatterUI format = new FormatterUI();
          format.CmdLineParams = strCmdLineParams;
          format.ExecuteRequest();
}

public class FormatterUI
{
          string[] args;

          public string CmdLineParams
          {
              set
              {
                  args=value;
              }
          }

          public void ExecuteRequest()
          {
              //something
          }
}
</code></pre>

<p>I want to pass the strings present in <strong>strCmdLineParams</strong> to <strong>ExecuteRequest</strong> method as <em>property</em>. But the above code is an error. How can I do this? Please help.</p>
