title: PowerShell class array of strings syntax
body: <p>I have the following class, but instead of a [String] member variable I need to declare an array of Strings. What's the syntax?</p>
  
  <pre><code>class SomeClass{
    [String] $patterns;
  
    SomeClass(){
      $this.patterns = "Maintenance Code","Page \d+ of";
    }
  
    [Bool]SomeMethod([string]$txt){}
  }
  </code></pre>