Created
December 4, 2013 17:19
-
-
Save adamhopkinson/7791592 to your computer and use it in GitHub Desktop.
Defaulting a sitecore query to a blank list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Item> items = (Sitecore.Context.Item.Axes.SelectItems(query) ?? new Item[] { }).ToList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment