=> is called lambda operator and read as Goes To. Notice that with a lambda expression you don't have to use the delegate keyword explicitly and don't have to specify the input parameter type explicity. The parameter type is inferred(推倒出來). lambda expressions are more convenient to use than anonymous methods. lambda expressions are particularly helpful for writing LINQ query expressions.
In most of the cases lambda expressions supersedes(替代) anonymous methods. To my knowlege, the only time I prefer to use anonymous methods over lambdas is, when we have to omit(省略) the parameter list when it's not used within the body.
Anonymous methods allow the parameter list to be omitted entirely when it's not used within the body,where as with lambda expressions this is not the case.
For example, with anonymous method notice that we have omitted the parameter list as we are not using them within the body
Button.Click += delegate{MessageBox.Show("hello world.");};
The above code can be rewritten using lambda expression as shown below.Notice that with lambda we cannot omit the parameter list.
Button.Click+=(sender,e)=>{MessegeBox.Show("hello world.");}; Button.Click+=()=>{MessegeBox.Show("hello world.");};//if omit parameter list it will get a compilar error.