This project has moved and is read-only. For the latest updates, please go here.

CamlexNET.DataTypes.Lookup' is inaccessible due to its protection level

Oct 23, 2011 at 7:25 PM

I am trying to do the following:  please advise on the best method for doing so:

if (compareMethod == "Eq" )
{
if (searchtype == "Text")
  expressions.Add(x => (
string)x[searchkey] == searchtype);

if (searchtype == "Lookup")
  expressions.Add(x => (DataTypes.Lookup
)x[searchkey] == searchtype);
}

I get the error CamlexNET.DataTypes.Lookup' is inaccessible due to its protection level

Oct 23, 2011 at 7:29 PM

Please, use either DataTypes.LookupId or DataTypes.LookupValue