Go to the documentation of this file.00001 using N2.Edit.Trash;
00002
00003 namespace N2.Extensions
00004 {
00005 public static class TrashExtensions
00006 {
00012 public static bool IsRecycled(this ContentItem item)
00013 {
00014 foreach(ContentItem ancestor in Find.EnumerateParents(item))
00015 {
00016 if (ancestor is ITrashCan)
00017 return true;
00018 }
00019 return false;
00020 }
00021 }
00022 }