Warning 1 CodeContracts: requires unproven: Contract.ForAll(coll, item => item != null) C:\MyApp\MyObj.cs
public MyObj()
: this(new Collection<Object>()) { }
public MyObj(ICollection<Object> coll)
{
Contract.Requires<ArgumentNullException>(coll != null);
Contract.Requires<ArgumentException>(Contract.ForAll(coll, item => item!= null));
_coll = coll;
}
I realize that in older versions of CodeContracts the Contract.ForAll()
method wasn't supported, but I thought by now (ver 1.4.40602.0) it would be? Am I just doing something wrong here or is it still not supported?