title: How do you do inline delegates in vb.net like c#?
body: <p>Is it possible to create an inline delegate in vb.net like you can in c#?</p>
  
  <p>For example, I would like to be able to do something inline like this:</p>
  
  <pre><code>myObjects.RemoveAll(delegate (MyObject m) { return m.X &gt;= 10; });
  </code></pre>
  
  <p>only in VB and without having to do something like this</p>
  
  <pre><code>myObjects.RemoveAll(AddressOf GreaterOrEqaulToTen) 
  
  Private Function GreaterOrEqaulToTen(ByVal m as MyObject)
      If m.x &gt;= 10 Then 
           Return true
      Else
           Return False
      End If
  End Function
  </code></pre>
  
  <p>-- edit --
  I should have mentioned that I am still working in .net 2.0 so I won't be able to use lambdas.</p>