static function as class members why using fat arrow function

后端 未结 0 1508
深忆病人
深忆病人 2020-12-17 16:27

What is the dis/advantage of following two ways for defining static functions:

class MyClass{
  static readonly MyFunction1 = () => { // do something };

          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题