However, it is guaranteed to be loaded and to have its fields initialized and its static constructor called before the class is referenced for the first time in your program.
然而,类别却能保证一定会载入,并会在您的程序第一次参考此类别前,先让其中的栏位初始化,而其中的静态建构函式也受到呼叫。
Note that demands should never be made in a class constructor because class constructor code is not guaranteed to execute at any particular point or in any particular context.
请注意需求不应该设定于类别建构函式内,因为无法确定类别建构函式程序码的执行时点和内容。
Note that demands should never be made in a class constructor because class constructor code is not guaranteed to execute at any particular point or in any particular context.
请注意需求不应该设定于类别建构函式内,因为无法确定类别建构函式程序码的执行时点和内容。
应用推荐