c# - Can a derived class be marked BeforeFieldInit even if the base class cannot? -
in code below, a cannot marked beforefieldinit due existence of static constructor. however, did not write static constructor b.
abstract class { static a(){} public static object a; } class b : { static object b = a; } is possible b marked beforefieldinit though base class a cannot?
Comments
Post a Comment