Click here to Skip to main content
16,021,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When I want to compile, an error shown:
#error: The expression you have entered is not valid.
Plus in Visual Studio 2010 this message is shown:
'if' conditional must have boolean type.

and my code for expression is:
C#
Message_2.Article.Approved = false;

and this is my XML code in scheme Article.xsd:
HTML
- <xs:element name="Approved">
- <xs:simpleType>
  <xs:restriction base="xs:boolean" /> 
  </xs:simpleType>
  </xs:element>
Posted
Updated 31-Aug-14 0:42am
v5

1 solution

It seems like you have made mistake while promoting your field.
In such cases you should use show promotion.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900