Specifies that this class should be compiled after other (specified) classes. In contrast to
DependsOn, this keyword does not require the other classes to be runnable.
Details
This keyword specifies that the class compiler should compile this class after compiling the specified classes. This keyword does not ensure the specified classes are runnable before compiling this class. Also, the CompileAfter keyword affects only classes with common values for the System keyword.
Note:
To ensure that a class is compiled after other classes are runnable, instead use the DependsOn keyword. For example, if class A refers to a class query defined in class B, class B must be runnable before class A can be compiled; in this case, use the DependsOn keyword.
This keyword does not affect runtime behavior.
Effect on Subclasses
This keyword is inherited from all superclasses. If the subclass specifies a value for the keyword, that value specifies additional classes that must be compiled before the subclass can be compiled.
Default
By default, this keyword is not specified.