title: .net - How to use attributes and including arguments?
body: <p>I'm writing a class-library in VB.Net and one of the subs that are being called from the application which is using my library has more or less the following syntax:</p>
  
  <pre><code>Public Sub LoadDict(ByVal PhoneticType As String, ByVal strDict As String)
  </code></pre>
  
  <p>where <strong>PhoneticType</strong> can be <em>phonSoundex</em>, <em>phonDoubleMetaphone</em> or <em>noPhonetic</em></p>
  
  <p>I want to give the application-developer a possibility to select the PhoneticType from a list when writing the call of above sub (I think it's called attribute-arguments). This would make it easier for the developer since spelling-errors can be avoided and which will avoid errors when using the library. </p>
  
  <p>I think it's all about attributes but I haven't managed to get it to work despite trying.</p>
  
  <p>Anyone who could post an example how to use attributes and including arguments. If the arguments could be made compulsory, that would be even better.</p>
  
  <p>Thank you.</p>