Quick LazyField<T> Question...

Topics: Customizing Orchard, General
Nov 5, 2012 at 8:48 AM

In Orchard v1.6 LazyField<T> is defined in both




Which is the one we should be using?

Jan 1, 2013 at 5:21 PM
Edited Jan 1, 2013 at 5:21 PM

Both versions are almost identical. The only difference is that the version in Orchard.ContentManagement.Utilities uses an extra type parameter for the loader.

There's an active work item regarding this situation here: http://orchard.codeplex.com/workitem/16933

I don't know which one will be picked as the LazyField<T>, but I would bet on the one from Orchard.ContentManagement.Utilities since it has an extra "feature" (the extra type parameter of the loader). Then again, I don't know how useful that extra parameter is and if it's at all being used.

I could find out, but I'm too lazy ;)