我在 dnspy 中反编译了一些统一的 dll 文件并得到了这一行
RuntimeHelpers.InitializeArray(array, fieldof(<PrivateImplementationDetails>.51A7A390CD6DE245186881400B18C9D822EFE240).FieldHandle);
Run Code Online (Sandbox Code Playgroud)
我需要了解该行中的 fieldof() 函数,我以前从未见过(因为我是初学者)
以及为什么它在该行中显示错误的两个原因
我只需要知道这两行之间有什么区别
private string somestring => "string";
private string somestring = "string";
Run Code Online (Sandbox Code Playgroud)
它们只是在控制台上打印相同的用途有什么区别