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

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

single sign on - Logging into Plone site with credentials passed through HTTP -