The difference between => and = when assigning values in C#

=>Every time the value is accessed, it will be called

=expression will only be evaluated once when it is initialized

reference

Two usages of => in C#_CAXCoder's Blog-CSDN Blog

Guess you like

Origin blog.csdn.net/qq_39397927/article/details/134513277