Skip to content

Instantly share code, notes, and snippets.

@jbreuer
Created July 16, 2015 12:53
Show Gist options
  • Save jbreuer/e4103c4d731fe3fdb275 to your computer and use it in GitHub Desktop.
Save jbreuer/e4103c4d731fe3fdb275 to your computer and use it in GitHub Desktop.
Would be cool if this could work for Nested Content
var items = this.GetPropertyValue<IEnumerable<IPublishedContent>>("sliderNestedContent");
//Slider is a generated model based on a document type.
//Currently x as Slider returns null.
return items.Select(x => x as Slider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment