Community discussion forum

how to Convert Lambda Expression in C# to Vb.Net

  • 4 months ago

    I Want to Convert the below Code into VB.NET.. I'd used many Converter to convert this Code.. But I Couldn't get the Proper Conversion because the use of Lambda Expression..

    private void Button_Click(object sender, RoutedEventArgs e) { DataServiceQuery query = (DataServiceQuery) from c in entities.Products where c.Discontinued ==false select c; DataGrid1.ItemsSource = null; query.BeginExecute(new AsyncCallback(c => { IEnumerable results= query.EndExecute(c); loadedProducts = results.ToList(); DataGrid1.ItemsSource = loadedProducts;

            }),query);
    
    
        }
    

    Can any one help me to convert the Lambda Expression Code into Vb.Net Code

    Post was edited on 13/07/2009 07:46:45 Report abuse
  • 4 months ago

    I Want to Convert the below Code into VB.NET.. I'd used many Converter to convert this Code.. But I Couldn't get the Proper Conversion because the use of Lambda Expression.. private void Button_Click(object sender, RoutedEventArgs e) { DataServiceQuery query = (DataServiceQuery) from c in entities.Products where c.Discontinued ==false select c; DataGrid1.ItemsSource = null; query.BeginExecute(new AsyncCallback(c => { IEnumerable results= query.EndExecute(c); loadedProducts = results.ToList(); DataGrid1.ItemsSource = loadedProducts;
    }),query);
    }

    Can any one help me to convert the Lambda Expression Code into Vb.Net Code

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback