This () => {//...}
is called lambda expression in C#. It's an easy way to define a method and pass it as an argument to another mehtod. In this specific case the method you define has no parameters and does whatever you specify inside the curly braces. More formally as it is stated here:
A lambda expression is an anonymous function that you can use to
create delegates or expression tree types. By using lambda
expressions, you can write local functions that can be passed as
arguments or returned as the value of function calls. Lambda
expressions are particularly helpful for writing LINQ query
expressions.
On the other hand, in JavaScript, this is called arrow function and as it is stated here:
An arrow function expression has a shorter syntax than a function
expression and does not have its own this, arguments, super, or
new.target. These function expressions are best suited for non-method
functions, and they cannot be used as constructors.