Meaning "Core" as a suffix for a member name

Note. I just want to say that this is a very small question - purely curiosity.

What is the point when a member is named with the suffix "Core"?

Other examples of members using the "Core" suffix above:

  • SearchCore
  • Sortcore

I just stumbled upon it in the WAF framework and you have a theory - could it be from a visual hint that the type name is between <> (which is the type of the ViewCore element), which makes it look like a “core” kind?

enter image description here

+6
source share
2 answers

Core commonly used as a keyword when you look at the basic principles of a class. In general, these classes contain the very basics of the application, relaying on minimal dependencies, to simplify the use of code throughout the application or in other applications.

+4
source

Section 9.9, “Template Method” (p. 355) of the Framework Development Guide by Krzysztof Kvalina and Brad Abrams states:

Consider the names of protected virtual members that provide extensibility points for non-virtual members by suffixing the name of the non-virtual member with the “Core”.

 public void SetBounds(...) { ... SetBoundsCore(...); // [Extension Point] } protected virtual void SetBoundsCore(...){...} 

The patter template method allows you to preserve the execution logic and control specific behaviors before and after the derived class executes the extension method.

+5
source

All Articles