title: How to compare custom class type
body: <p>Basically i want to compare Custom Class type</p>
  
  <pre><code>    Public Sub Add(items As SchoolTypes())
  
      Select Case items
          Case items.GetType() Is GetType(Programme)
  
          Case items.GetType() Is GetType(Etudiant)
  
          Case Else
  
      End Select
  End Sub
  </code></pre>
  
  <p>this throw the error: 'Operator = is not defined'
  I don't know how to fix that....</p>
  
  <p>EDIT: when i lock a single element</p>
  
  <pre><code>    Public Sub Add(items As SchoolTypes())
  
      Select Case items
          Case items(0).GetType() Is GetType(Programme)
  
          Case items(0).GetType() Is GetType(Etudiant)
  
          Case Else
  
      End Select
  End Sub
  </code></pre>
  
  <p>Still get the Same error..</p>