Skip to content

Instantly share code, notes, and snippets.

@adamhopkinson
Created December 4, 2013 17:19
Show Gist options
  • Save adamhopkinson/7791592 to your computer and use it in GitHub Desktop.
Save adamhopkinson/7791592 to your computer and use it in GitHub Desktop.
Defaulting a sitecore query to a blank list
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