title: VB.NET Short Form Lambda Syntax
body: <p>I'm required by my company to use VB.NET rather than C#.  It's not really that different of course, especially under the hood.</p>
  
  <p>When it comes to lambdas, the long form I find frustrating.  I haven't yet found if there's any short form syntax for lamdbas in VB.NET.  Does that exist?</p>
  
  <p>for example look how much shorter this is </p>
  
  <pre><code>ctx.Load(list.RoleAssignments, items =&gt; items.Include(
                           item =&gt; item.Member.LoginName,
                           item =&gt; item.Member.PrincipalType,
                           item =&gt; item.Member.Title)); 
  </code></pre>
  
  <p>than this </p>
  
  <pre><code>ctx.Load(list.RoleAssignments, Function(rac As RoleAssignmentCollection) rac.Include( _
                                                  Function(item As RoleAssignment) item.Member.LoginName, _
                                                  Function(item As RoleAssignment) item.Member.PrincipalType, _
                                                  Function(item As RoleAssignment) item.Member.Title))
  </code></pre>