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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -