Note: I just want to say up front this is a very minor question - purely a curiosity.
What is the meaning when a member is named with a suffix "Core"?
Other examples of members using the "Core" suffix off the top:
I just came across it in the WAF framework and have a theory - could it come from the visual cue that the type name between <>'s (which is the type of the member ViewCore
) making it look like a "core" of sorts?
In section 9.9 Template Method (p.355) of "Framework Design Guidelines" by Krzysztif Cwalina and Brad Abrams states:
Consider naming protected virtual members that provide extensibility points for nonvirtual members by suffixing the nonvirtual member name with "Core".
public void SetBounds(...) {
...
SetBoundsCore(...); // [Extension Point]
}
protected virtual void SetBoundsCore(...){...}
The template method patter allows you to preserve execution logic and control certain pre and post behaviors after a derived class executes the extension method.
Core
is usually used as a keyword when you are looking at the very fundamentals of a class. In general these classes contains the very basics of the application, relaying on the bare minimum dependencies to make it easy to use the code throughout your application, or other applications.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With