Skip to main content

CS0266

PropertyValue
TitleCannot implicitly convert type 'type1' to 'type2'. An explicit conversion exists (are you missing a cast?).
SeverityError

Code Fixes

  • Add comparison with boolean literal
  • Change member type according to return expression
  • Create singleton array
  • Use coalesce expression

See Also