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
var libManager = LibrariesManager.GetManager(); | |
var imagesFromFoo = libManager.GetAlbums() | |
.Where(a => a.Title.Equals("Foo")) | |
.First() | |
.Images.Where(i => i.Status == ContentLifecycleStatus.Live) | |
.ToList(); |
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
var libManager = LibrariesManager.GetManager(); | |
var imagesFromFoo = libManager.GetImages() | |
.Where(i => | |
i.Album.Title.Equals("Foo") | |
&& i.Status == ContentLifecycleStatus.Live) | |
.ToList(); |
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
<?xml version="1.0" encoding="windows-1252" ?> | |
<TODOLIST FILENAME="C:\Projects\Programming\Blog\ND2011 Video Checklist\ND2011.tdl" PROJECTNAME="ND2011" FILEFORMAT="9" NEXTUNIQUEID="166" LASTMODIFIED="2011-06-19" FILEVERSION="111" EARLIESTDUEDATE="0.00000000"> | |
<TASK TITLE="Day 1" ID="1" ICONINDEX="-1" POS="1" PRIORITY="5" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" STARTDATE="40713.00000000" STARTDATESTRING="2011-06-19" CREATIONDATE="40713.53445602" CREATIONDATESTRING="2011-06-19 12:49 PM" LASTMOD="40713.53452546" LASTMODSTRING="2011-06-19 12:49 PM" PRIORITYCOLOR="15732480" PRIORITYWEBCOLOR="#000FF0"> | |
<TASK TITLE="Keynote - Cloud Computing and Azure" ID="16" ICONINDEX="-1" COMMENTS="Scott Guthrie | |
http://ndc2011.aventia.no/" POS="1" PRIORITY="5" RISK="0" PERCENTDONE="0" COST="0.00000000" CALCCOST="0.00000000" STARTDATE="40713.00000000" STARTDATESTRING="2011-06-19" CREATIONDATE="40713.54113426" CREATIONDATESTRING="2011-06-19 12:59 PM" LASTMOD="40713.54435185" LASTMODSTRING="2011-06-19 1:03 P |
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
public static class IListOfTExtensions | |
{ | |
public static bool IsOrdered<T, T2>(this IList<T> @this, Func<T, T2> orderedOnProperty) | |
where T2 : IComparable<T2> | |
{ | |
var isLessThanOrEqualTo = true; | |
for (int i = 1; i < @this.Count; i++) | |
{ | |
var comparer = Comparer<T2>.Default; |