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;!--removed tag-->!--removed tag-->!--removed tag-->
}),query);
}
Can any one help me to convert the Lambda Expression Code into Vb.Net Code
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).