vb.net - Are these two vb methods identical in function? -


  private sub ChangeCursor (ByVal Target target.Dispatcher.Invoke as as FrameworkElement, ByVal cursor) (DispatcherPriority.Normal, New DispatcherOperationCallback (_ function () Mouse.OverrideCursor = cursor back nothing end function), a) end Sub  

and

  private sub ChangeCursor (ByVal target cursor1 as FrameworkElement, ByRef cursor as) target.Dispatcher.Invoke as (DispatcherPriority.Normal, New DispatcherOperationCallback (_ Function (cursor) Mouse.OverrideCursor = cursor1 back some also finished end Oh), cursor) End Sub  

2 piece is probably cheaper. Lambda does not capture the value of the cursor logic. They otherwise functionally identical little things do not put sweat.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -