Operator '&&' cannot be applied to operands of type 'bool' and 'method group'

Not sure what I'm doing wrong here and is there a better way to code the method?  (FYI: I used sss to hide the real names here for privacy purposes)

                if (chkSubmit.Checked && CheckRequiredSSS)
                {
                     ...do something
                 }

    protected bool CheckRequiredSSS()
    {
        if (sss.DataTier.sss.ContentItemType.Values.ssss != null)
        {
            return true;
        }
        else
        {
            return false;
        }
    }

Error: Operator '&&' cannot be applied to operands of type 'bool' and 'method group'
LVL 1
dba123Asked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
               if (chkSubmit.Checked == true && CheckRequiredSSS == true)
0
 
dba123Author Commented:
whoops, here's the resolution, duh

if (chkSubmit.Checked && CheckRequiredSSS())
0
 
dba123Author Commented:
or yours works also...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.