ReadOnlyListBaseExtension in CSLA3.5

ReadOnlyListBaseExtension in CSLA3.5

Old forum URL: forums.lhotka.net/forums/t/4502.aspx


gkurtz posted on Saturday, March 15, 2008

I was wondering. In the class below. Shouldn't Core.IEditableBusinessObject be Core.IReadOnlyObject ?

public static class ReadOnlyListBaseExtension
{
   
public static IEnumerable<C> Where<T, C>(this ReadOnlyListBase<T, C> source, Expression<Func<C, bool>> expr)
       
where T : ReadOnlyListBase<T, C>
       
where C : Core.IEditableBusinessObject
    {
        foreach (C item in source.SearchByExpression(expr))
       
yield return item;
    }
}

Or is it that I'm missing something?

Regards,
Rob

RockfordLhotka replied on Saturday, March 15, 2008

That seems likely. I'll forward this to Aaron so he can confirm/fix.

Thanks!

Copyright (c) Marimer LLC