From c1960525d7bf973e1c4e18b4e6ef1fe0040f2326 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Tue, 26 Mar 2013 19:12:40 -0700 Subject: [PATCH] updated lazylist to make it easy to work with. --- NzbDrone.Core/Datastore/LazyList.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/NzbDrone.Core/Datastore/LazyList.cs b/NzbDrone.Core/Datastore/LazyList.cs index 6f4f3fe22..e27709b48 100644 --- a/NzbDrone.Core/Datastore/LazyList.cs +++ b/NzbDrone.Core/Datastore/LazyList.cs @@ -5,6 +5,25 @@ namespace NzbDrone.Core.Datastore { public class LazyList : LazyLoaded> { + public LazyList() + { + } + + public LazyList(IEnumerable items) + : base(new List(items)) + { + + } + + public static implicit operator LazyList(List val) + { + return new LazyList(val); + } + + public static implicit operator List(LazyList lazy) + { + return lazy.Value; + } } } \ No newline at end of file