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 -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -