so I am looking at this C# method
if (IsInDesignMode)
{
// Only runs in design mode
_dataService.GetMachine(_machines[0].Machine.SerialNumber, (machine, error) => //<-- this is what I am confused about
{
SelectedMachine = new MachineViewModel(machine);
});
}
I understand the if()
statement and the SelectedMachine = new MachineViewModel(machine);
line.
But I am confused about the commented line.
_dataService
calls a GetMachine
method passing in _machines[0].Machine.SerialNumber
param and (machine, error) => {}
. It is not an "equal or less than" statement right?.
It kinda looks like a Javascript code to me...?
Does the method say,
If IsInDesignMode {
dataservice.GetMachine(machine serial number, machine error is new MachineViewModel)
}
Can any one explain what => { }
this is? thank you very much!