CSLA .NET 3.0 Build Warning

CSLA .NET 3.0 Build Warning

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


JabbaTheNut posted on Saturday, June 30, 2007

Rocky,

When you build CSLA .NET 3.0, you get the following warning...

Field 'Csla.ReadOnlyBase<T>._executeResultCache' is never assigned to, and will always have its default value null

I noticed, however, that in the CanExecuteMethod(string methodName) method, you do have the following code which does assign _executeResultCache...

_executeResultCache[methodName] = result;

Why is the warning thrown?

RockfordLhotka replied on Sunday, July 01, 2007

That's funny, because I think I found that same issue about the time you did Smile [:)]

I was missing a bit of initialization code in ReadOnlyBase, and that code is now in the class (in svn).

Thanks for helping find this bug!!!

Copyright (c) Marimer LLC