Chapter 7, Why ToLower() for page.theme
I'm looking at the frontend.master.cs file. The switch statement to alternate menu and treeview between themes uses:
[ switch (Page.Theme.ToLower()) /] and then [ case "darkgrey": /] to select the css file.
Could anyone explain why this is better than simply:
[switch (Page.Theme) ]
with [ case "DarkGrey": /] ?
|