Sitecore / Helix.Docs

Sitecore Helix is the official guidelines and recommended practises for developing in Sitecore.
26 stars 21 forks source link

Updated Template References section for static classes #41

Closed sergey-krivchenko closed 2 years ago

sergey-krivchenko commented 4 years ago

a fix for the latest comment in #26 . Using a static class does not indicate that it is used only for holding constants. Usually a class name qualifier is used for this (e.g. static class Constants). I think the sentence should just say that it is a recommended way to define constants, following the conventions for defining constants in the Microsoft C# Programming Guide. An explanation for this can be that static classes can only hold static members, including constants, and it cannot be mistakenly instantiated or derived from.