615 references to CodeBinaryOperatorType
PresentationBuildTasks (7)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (7)
957CodeBinaryOperatorType.ValueEquality, 1187CodeBinaryOperatorType.ValueEquality, 2700CodeBinaryOperatorExpression cboe1 = new CodeBinaryOperatorExpression(cfre1, CodeBinaryOperatorType.BitwiseOr, cfre2); 2701CodeBinaryOperatorExpression cboe2 = new CodeBinaryOperatorExpression(cfre3, CodeBinaryOperatorType.BitwiseOr, cfre4); 2702CodeBinaryOperatorExpression cboeCI = new CodeBinaryOperatorExpression(cboe1, CodeBinaryOperatorType.BitwiseOr, cboe2); 2803CodeBinaryOperatorExpression cboe = new CodeBinaryOperatorExpression(cfre2, CodeBinaryOperatorType.BitwiseOr, cfre3); 2804CodeBinaryOperatorExpression cboeCD = new CodeBinaryOperatorExpression(cfre5, CodeBinaryOperatorType.BitwiseOr, cboe);
System (49)
compmod\microsoft\csharp\csharpcodeprovider.cs (18)
2113private void OutputOperator(CodeBinaryOperatorType op) { 2115case CodeBinaryOperatorType.Add: 2118case CodeBinaryOperatorType.Subtract: 2121case CodeBinaryOperatorType.Multiply: 2124case CodeBinaryOperatorType.Divide: 2127case CodeBinaryOperatorType.Modulus: 2130case CodeBinaryOperatorType.Assign: 2133case CodeBinaryOperatorType.IdentityInequality: 2136case CodeBinaryOperatorType.IdentityEquality: 2139case CodeBinaryOperatorType.ValueEquality: 2142case CodeBinaryOperatorType.BitwiseOr: 2145case CodeBinaryOperatorType.BitwiseAnd: 2148case CodeBinaryOperatorType.BooleanOr: 2151case CodeBinaryOperatorType.BooleanAnd: 2154case CodeBinaryOperatorType.LessThan: 2157case CodeBinaryOperatorType.LessThanOrEqual: 2160case CodeBinaryOperatorType.GreaterThan: 2163case CodeBinaryOperatorType.GreaterThanOrEqual:
compmod\microsoft\visualbasic\VBCodeProvider.cs (10)
845protected override void OutputOperator(CodeBinaryOperatorType op) { 847case CodeBinaryOperatorType.IdentityInequality: 850case CodeBinaryOperatorType.IdentityEquality: 853case CodeBinaryOperatorType.BooleanOr: 856case CodeBinaryOperatorType.BooleanAnd: 859case CodeBinaryOperatorType.ValueEquality: 862case CodeBinaryOperatorType.Modulus: 865case CodeBinaryOperatorType.BitwiseOr: 868case CodeBinaryOperatorType.BitwiseAnd: 886if (e.Operator != CodeBinaryOperatorType.IdentityInequality) {
compmod\system\codedom\CodeBinaryOperatorExpression.cs (3)
28private CodeBinaryOperatorType op; 47public CodeBinaryOperatorExpression(CodeExpression left, CodeBinaryOperatorType op, CodeExpression right) { 89public CodeBinaryOperatorType Operator {
compmod\system\codedom\compiler\CodeGenerator.cs (18)
1237protected virtual void OutputOperator(CodeBinaryOperatorType op) { 1239case CodeBinaryOperatorType.Add: 1242case CodeBinaryOperatorType.Subtract: 1245case CodeBinaryOperatorType.Multiply: 1248case CodeBinaryOperatorType.Divide: 1251case CodeBinaryOperatorType.Modulus: 1254case CodeBinaryOperatorType.Assign: 1257case CodeBinaryOperatorType.IdentityInequality: 1260case CodeBinaryOperatorType.IdentityEquality: 1263case CodeBinaryOperatorType.ValueEquality: 1266case CodeBinaryOperatorType.BitwiseOr: 1269case CodeBinaryOperatorType.BitwiseAnd: 1272case CodeBinaryOperatorType.BooleanOr: 1275case CodeBinaryOperatorType.BooleanAnd: 1278case CodeBinaryOperatorType.LessThan: 1281case CodeBinaryOperatorType.LessThanOrEqual: 1284case CodeBinaryOperatorType.GreaterThan: 1287case CodeBinaryOperatorType.GreaterThanOrEqual:
System.Activities (26)
System\Activities\XamlIntegration\TextExpressionCompiler.cs (26)
505CodeBinaryOperatorType.Add, 518CodeBinaryOperatorType.Add, 765CodeBinaryOperatorType.IdentityEquality, 853CodeBinaryOperatorExpression idExpression = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression("expressionId"), CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(descriptor.Id)); 908CodeBinaryOperatorExpression idExpression = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression("expressionId"), CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(descriptor.Id)); 995CodeBinaryOperatorExpression idExpression = new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression("expressionId"), CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(descriptor.Id)); 1011CodeBinaryOperatorType.IdentityEquality, 1044CodeBinaryOperatorType.IdentityEquality, 1107CodeBinaryOperatorType.IdentityEquality, 1297CodeBinaryOperatorType.ValueEquality, 1302CodeBinaryOperatorType.ValueEquality, 1315CodeBinaryOperatorType.ValueEquality, 1320CodeBinaryOperatorType.BooleanAnd, 1325CodeBinaryOperatorType.BooleanAnd, 1690CodeBinaryOperatorType.Add, 1726CodeBinaryOperatorType.Add, 1998CodeBinaryOperatorType.Subtract, 2003CodeBinaryOperatorType.ValueEquality, 2215CodeBinaryOperatorType.ValueEquality, 2222CodeBinaryOperatorType.LessThan, 2228CodeBinaryOperatorType.BooleanAnd, 2246CodeBinaryOperatorType.Subtract, 2306CodeBinaryOperatorType.Add, 2311CodeBinaryOperatorType.IdentityInequality, 2316CodeBinaryOperatorType.IdentityInequality, 2321CodeBinaryOperatorType.BooleanOr,
System.Data (3)
fx\src\data\System\Data\CodeGen\datacache.cs (3)
1473private static CodeBinaryOperatorExpression BinOperator(CodeExpression left, CodeBinaryOperatorType op, CodeExpression right) { 1477private static CodeBinaryOperatorExpression IdNotEQ(CodeExpression left, CodeExpression right) {return BinOperator(left, CodeBinaryOperatorType.IdentityInequality, right);} 1479private static CodeBinaryOperatorExpression EQ( CodeExpression left, CodeExpression right) {return BinOperator(left, CodeBinaryOperatorType.ValueEquality, right);}
System.Data.Entity.Design (4)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
515indexParameterReference, CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(index)));
System\Data\EntityModel\Emitters\Emitter.cs (2)
56return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityEquality, NullExpression); 61return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityInequality, NullExpression);
System\Data\EntityModel\Emitters\EntityContainerEmitter.cs (1)
616CodeBinaryOperatorType.IdentityInequality,
System.Data.Services.Design (5)
System\Data\EntityModel\Emitters\ClientApiGenerator.cs (1)
794CodeBinaryOperatorType.IdentityInequality,
System\Data\EntityModel\Emitters\Emitter.cs (2)
50return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityEquality, NullExpression); 55return new CodeBinaryOperatorExpression(expression, CodeBinaryOperatorType.IdentityInequality, NullExpression);
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
252CodeBinaryOperatorType.BooleanAnd, 257CodeBinaryOperatorType.IdentityInequality,
System.Management (124)
WmiGenerator.cs (124)
1074cboe.Operator = CodeBinaryOperatorType.ValueEquality; 1087cboe.Operator = CodeBinaryOperatorType.ValueEquality; 1102cboe1.Operator = CodeBinaryOperatorType.IdentityInequality; 1339CodeBinaryOperatorType.IdentityEquality, 1362CodeBinaryOperatorType.IdentityEquality, 1431CodeBinaryOperatorType.ValueEquality, 1544CodeBinaryOperatorType.ValueEquality, 1552CodeBinaryOperatorType.ValueEquality, 1578CodeBinaryOperatorType.ValueEquality, 1582CodeBinaryOperatorType.ValueEquality, 1588cboe2.Operator = CodeBinaryOperatorType.BooleanAnd; 2592cboe.Operator = CodeBinaryOperatorType.ValueEquality; 2659cboe.Operator = CodeBinaryOperatorType.ValueEquality; 2734CodeBinaryOperatorType.IdentityInequality, 2749cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 2899cboe.Operator = CodeBinaryOperatorType.ValueEquality; 3490cboe.Operator = CodeBinaryOperatorType.IdentityEquality; 3497cboe1.Operator = CodeBinaryOperatorType.IdentityEquality; 3544cboe.Operator = CodeBinaryOperatorType.IdentityEquality; 3670cboe.Operator = CodeBinaryOperatorType.IdentityEquality; 3678cboe1.Operator = CodeBinaryOperatorType.IdentityEquality; 4130cboe1.Operator = CodeBinaryOperatorType.IdentityEquality; 4150cboe2.Operator = CodeBinaryOperatorType.IdentityEquality; 4156CodeBinaryOperatorType.IdentityEquality, 4160CodeBinaryOperatorType.IdentityInequality, 4166cboe5.Operator = CodeBinaryOperatorType.BooleanAnd; 4172CodeBinaryOperatorType.ValueEquality, 4178cboe7.Operator = CodeBinaryOperatorType.BooleanAnd; 4192cboe1.Operator = CodeBinaryOperatorType.IdentityEquality; 4200cboe2.Operator = CodeBinaryOperatorType.IdentityEquality; 4205cboe3.Operator = CodeBinaryOperatorType.BooleanAnd; 4221CodeBinaryOperatorType.IdentityEquality, 4225CodeBinaryOperatorType.IdentityInequality, 4231cboe5.Operator = CodeBinaryOperatorType.BooleanAnd; 4237CodeBinaryOperatorType.ValueEquality, 4243cboe7.Operator = CodeBinaryOperatorType.BooleanAnd; 4262CodeBinaryOperatorType.IdentityInequality, 4269CodeBinaryOperatorType.ValueEquality, 4275cboe3.Operator = CodeBinaryOperatorType.BooleanAnd; 4427cboe.Operator = CodeBinaryOperatorType.LessThan; 4433CodeBinaryOperatorType.Add, 5065cboe.Operator = CodeBinaryOperatorType.ValueEquality; 5099cboe.Operator = CodeBinaryOperatorType.ValueEquality; 5447cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 5456cboe1.Operator = CodeBinaryOperatorType.IdentityInequality; 5471cboe3.Operator = CodeBinaryOperatorType.IdentityEquality; 5476cboe4.Operator = CodeBinaryOperatorType.IdentityEquality; 5481cboe5.Operator = CodeBinaryOperatorType.BooleanOr; 5533cboe.Operator = CodeBinaryOperatorType.ValueEquality; 5538cboe1.Operator = CodeBinaryOperatorType.IdentityInequality; 5543cboe2.Operator = CodeBinaryOperatorType.BooleanAnd; 5606cboe.Operator = CodeBinaryOperatorType.ValueEquality; 5611cboe1.Operator = CodeBinaryOperatorType.IdentityInequality; 5616cboe2.Operator = CodeBinaryOperatorType.BooleanAnd; 5634cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 5643cboe.Operator = CodeBinaryOperatorType.LessThan; 5649CodeBinaryOperatorType.Add, 5673cboe.Operator = CodeBinaryOperatorType.ValueEquality; 5702cboe1.Operator = CodeBinaryOperatorType.IdentityInequality; 5767cboe1.Operator = CodeBinaryOperatorType.IdentityInequality; 5826cboe1.Operator = CodeBinaryOperatorType.LessThan; 5835CodeBinaryOperatorType.Add, 5902cboe1.Operator = CodeBinaryOperatorType.IdentityInequality; 5947cboe1.Operator = CodeBinaryOperatorType.LessThan; 5957CodeBinaryOperatorType.Add, 6099cboe.Operator = CodeBinaryOperatorType.ValueEquality; 6113cboe.Operator = CodeBinaryOperatorType.ValueEquality; 6147cboe1.Operator = CodeBinaryOperatorType.LessThan; 6153CodeBinaryOperatorType.Add, 6320cboe1.Operator = CodeBinaryOperatorType.IdentityEquality; 6491cboe.Operator = CodeBinaryOperatorType.IdentityEquality; 6512cboe.Operator = CodeBinaryOperatorType.ValueEquality; 6530cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 6565cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 6577cboe.Operator = CodeBinaryOperatorType.Divide; 6583cboe2.Operator = CodeBinaryOperatorType.Multiply; 6599cboeYear.Operator = CodeBinaryOperatorType.LessThan; 6605cboeMonth.Operator = CodeBinaryOperatorType.LessThan; 6610cboeDay.Operator = CodeBinaryOperatorType.LessThan; 6615cboeHour.Operator = CodeBinaryOperatorType.LessThan; 6620cboeMinute.Operator = CodeBinaryOperatorType.LessThan; 6625cboeSecond.Operator = CodeBinaryOperatorType.LessThan; 6630cboeTicks.Operator = CodeBinaryOperatorType.LessThan; 6635cboetemp1.Operator = CodeBinaryOperatorType.BooleanOr; 6640cboetemp2.Operator = CodeBinaryOperatorType.BooleanOr; 6645cboetemp3.Operator = CodeBinaryOperatorType.BooleanOr; 6650cboetemp4.Operator = CodeBinaryOperatorType.BooleanOr; 6655cboetemp5.Operator = CodeBinaryOperatorType.BooleanOr; 6660cboetemp6.Operator = CodeBinaryOperatorType.BooleanOr; 6665cboetemp7.Operator = CodeBinaryOperatorType.BooleanOr; 6757cboe.Operator = CodeBinaryOperatorType.Divide; 6797cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 6828cboe.Operator = CodeBinaryOperatorType.Subtract; 6867cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 6948cboe.Operator = CodeBinaryOperatorType.GreaterThan; 6978cboe3.Operator = CodeBinaryOperatorType.LessThan; 7068cboe.Operator = CodeBinaryOperatorType.Subtract; 7073cboe1.Operator = CodeBinaryOperatorType.Multiply; 7081cboe2.Operator = CodeBinaryOperatorType.Divide; 7106cboe.Operator = CodeBinaryOperatorType.GreaterThan; 7193cboe.Operator = CodeBinaryOperatorType.Divide; 7218cboe.Operator = CodeBinaryOperatorType.GreaterThan; 7239cboe1.Operator = CodeBinaryOperatorType.GreaterThanOrEqual; 7247cboe2.Operator = CodeBinaryOperatorType.Divide; 7275CodeBinaryOperatorType.Subtract, 7365cboe.Operator = CodeBinaryOperatorType.Subtract; 7370cboe1.Operator = CodeBinaryOperatorType.Multiply; 7375cboe2.Operator = CodeBinaryOperatorType.Divide; 7402cboe.Operator = CodeBinaryOperatorType.GreaterThan; 7507cboe.Operator = CodeBinaryOperatorType.IdentityEquality; 7528cboe.Operator = CodeBinaryOperatorType.ValueEquality; 7547cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 7570cboe.Operator = CodeBinaryOperatorType.IdentityInequality; 7630CodeBinaryOperatorType.Multiply, 7638CodeBinaryOperatorType.Divide, 7656cboeDays.Operator = CodeBinaryOperatorType.LessThan; 7662cboeHours.Operator = CodeBinaryOperatorType.LessThan; 7667cboeMinutes.Operator = CodeBinaryOperatorType.LessThan; 7672cboeSeconds.Operator = CodeBinaryOperatorType.LessThan; 7677cboeTicks.Operator = CodeBinaryOperatorType.LessThan; 7682cboetemp1.Operator = CodeBinaryOperatorType.BooleanOr; 7687cboetemp2.Operator = CodeBinaryOperatorType.BooleanOr; 7692cboetemp3.Operator = CodeBinaryOperatorType.BooleanOr; 7697cboetemp4.Operator = CodeBinaryOperatorType.BooleanOr;
System.Runtime.Serialization (3)
System\Runtime\Serialization\CodeExporter.cs (3)
1816CodeBinaryOperatorType.IdentityEquality, 1912CodeConditionStatement ifStatement = new CodeConditionStatement(new CodeBinaryOperatorExpression(propertyChanged, CodeBinaryOperatorType.IdentityInequality, NullReference)); 1970ifStatement.Condition = new CodeBinaryOperatorExpression(left, CodeBinaryOperatorType.IdentityInequality, right);
System.ServiceModel (2)
System\ServiceModel\Description\ClientClassGenerator.cs (2)
827CodeBinaryOperatorType.IdentityInequality, 925CodeBinaryOperatorType.IdentityEquality,
System.Web (14)
Compilation\BaseCodeDomTreeGenerator.cs (2)
452CodeBinaryOperatorType.ValueEquality, 617ifStmt.Condition = new CodeBinaryOperatorExpression(fieldAccess, CodeBinaryOperatorType.IdentityEquality, new CodePrimitiveExpression(null));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (4)
498CodeBinaryOperatorExpression contentNullCheckExpr = new CodeBinaryOperatorExpression(contentTemplatesFieldRef, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null)); 530templateIfStmt.Condition = new CodeBinaryOperatorExpression(templateFieldRef, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null)); 924templateIfStmt.Condition = new CodeBinaryOperatorExpression(templateFieldRef, CodeBinaryOperatorType.IdentityEquality, new CodePrimitiveExpression(null)); 1080ensureControlExpression.Operator = CodeBinaryOperatorType.IdentityInequality;
Compilation\DataBindingExpressionBuilder.cs (1)
58CodeBinaryOperatorType.IdentityInequality,
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (1)
124CodeBinaryOperatorType.IdentityInequality,
Compilation\PageCodeDomTreeGenerator.cs (1)
189CodeBinaryOperatorType.IdentityEquality,
Configuration\BrowserCapabilitiesCodeGenerator.cs (5)
755istatement.Condition = new CodeBinaryOperatorExpression(cmie, CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(false)); 1238istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(true)); 1241istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(false)); 1299istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(true)); 1302istatement.Condition = new CodeBinaryOperatorExpression(result, CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(false));
System.Web.Services (4)
System\Web\Services\Description\HttpProtocolImporter.cs (1)
286invokeParams[1] = new CodeBinaryOperatorExpression(left, CodeBinaryOperatorType.Add, right);
System\Web\Services\Description\ProtocolImporter.cs (1)
690CodeBinaryOperatorExpression checkIfNull = new CodeBinaryOperatorExpression(urlSettingReference, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null));
System\Web\Services\Description\WebCodeGenerator.cs (2)
292CodeBinaryOperatorExpression checkIfNull = new CodeBinaryOperatorExpression(member, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null)); 337CodeBinaryOperatorExpression checkIfNull = new CodeBinaryOperatorExpression(member, CodeBinaryOperatorType.IdentityEquality, new CodePrimitiveExpression(null));
System.Workflow.Activities (359)
Rules\ArithmeticLiteral.cs (160)
298CodeBinaryOperatorType operation, 337private static Type ResultType(CodeBinaryOperatorType operation, TypeFlags lhsType, TypeFlags rhsType) 345case CodeBinaryOperatorType.Add: 349goto case CodeBinaryOperatorType.Divide; 351case CodeBinaryOperatorType.Divide: 352case CodeBinaryOperatorType.Modulus: 353case CodeBinaryOperatorType.Multiply: 354case CodeBinaryOperatorType.Subtract: 399case CodeBinaryOperatorType.BitwiseAnd: 400case CodeBinaryOperatorType.BitwiseOr: 432string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.TypeName, CodeBinaryOperatorType.Add, this.TypeName); 433throw new RuleEvaluationIncompatibleTypesException(message, v.m_type, CodeBinaryOperatorType.Add, this.m_type); 437string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, Messages.NullValue, CodeBinaryOperatorType.Add, this.TypeName); 438throw new RuleEvaluationIncompatibleTypesException(message, typeof(void), CodeBinaryOperatorType.Add, this.m_type); 442string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 443throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 447string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 448throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 452string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 453throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 457string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 458throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 462string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 463throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 467string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 468throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 472string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 473throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 477string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 478throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 482string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 483throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 487string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 488throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 492string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Add, this.TypeName); 493throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Add, this.m_type); 498string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.TypeName, CodeBinaryOperatorType.Subtract, this.TypeName); 499throw new RuleEvaluationIncompatibleTypesException(message, v.m_type, CodeBinaryOperatorType.Subtract, this.m_type); 503string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, Messages.NullValue, CodeBinaryOperatorType.Subtract, this.TypeName); 504throw new RuleEvaluationIncompatibleTypesException(message, typeof(void), CodeBinaryOperatorType.Subtract, this.m_type); 508string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 509throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 513string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 514throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 518string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 519throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 523string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 524throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 528string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 529throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 533string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 534throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 538string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 539throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 543string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Subtract, this.TypeName); 544throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Subtract, this.m_type); 549string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.TypeName, CodeBinaryOperatorType.Multiply, this.TypeName); 550throw new RuleEvaluationIncompatibleTypesException(message, v.m_type, CodeBinaryOperatorType.Multiply, this.m_type); 554string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, Messages.NullValue, CodeBinaryOperatorType.Multiply, this.TypeName); 555throw new RuleEvaluationIncompatibleTypesException(message, typeof(void), CodeBinaryOperatorType.Multiply, this.m_type); 559string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 560throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 564string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 565throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 569string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 570throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 574string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 575throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 579string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 580throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 584string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 585throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 589string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 590throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 594string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Multiply, this.TypeName); 595throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Multiply, this.m_type); 600string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.TypeName, CodeBinaryOperatorType.Divide, this.TypeName); 601throw new RuleEvaluationIncompatibleTypesException(message, v.m_type, CodeBinaryOperatorType.Divide, this.m_type); 605string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, Messages.NullValue, CodeBinaryOperatorType.Divide, this.TypeName); 606throw new RuleEvaluationIncompatibleTypesException(message, typeof(void), CodeBinaryOperatorType.Divide, this.m_type); 610string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 611throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 615string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 616throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 620string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 621throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 625string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 626throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 630string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 631throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 635string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 636throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 640string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 641throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 645string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Divide, this.TypeName); 646throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Divide, this.m_type); 651string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.m_type, CodeBinaryOperatorType.Modulus, this.TypeName); 652throw new RuleEvaluationIncompatibleTypesException(message, v.m_type, CodeBinaryOperatorType.Modulus, this.m_type); 656string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, Messages.NullValue, CodeBinaryOperatorType.Modulus, this.TypeName); 657throw new RuleEvaluationIncompatibleTypesException(message, typeof(void), CodeBinaryOperatorType.Modulus, this.m_type); 661string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 662throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 666string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 667throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 671string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 672throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 676string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 677throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 681string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 682throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 686string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 687throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 691string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 692throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 696string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.Modulus, this.TypeName); 697throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.Modulus, this.m_type); 702string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.m_type, CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 703throw new RuleEvaluationIncompatibleTypesException(message, v.m_type, CodeBinaryOperatorType.BitwiseAnd, this.m_type); 707string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, Messages.NullValue, CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 708throw new RuleEvaluationIncompatibleTypesException(message, typeof(void), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 712string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 713throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 717string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 718throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 722string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 723throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 727string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 728throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 732string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 733throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 737string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 738throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 742string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 743throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 747string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 748throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 752string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.TypeName); 753throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseAnd, this.m_type); 758string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.TypeName, CodeBinaryOperatorType.BitwiseOr, this.TypeName); 759throw new RuleEvaluationIncompatibleTypesException(message, v.m_type, CodeBinaryOperatorType.BitwiseOr, this.m_type); 763string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, Messages.NullValue, CodeBinaryOperatorType.BitwiseOr, this.TypeName); 764throw new RuleEvaluationIncompatibleTypesException(message, typeof(void), CodeBinaryOperatorType.BitwiseOr, this.m_type); 768string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 769throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 773string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 774throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 778string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 779throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 783string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 784throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 788string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 789throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 793string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 794throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 798string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 799throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 803string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 804throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type); 808string message = string.Format(CultureInfo.CurrentCulture, Messages.IncompatibleArithmeticTypes, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.TypeName); 809throw new RuleEvaluationIncompatibleTypesException(message, v.GetType(), CodeBinaryOperatorType.BitwiseOr, this.m_type);
Rules\CodeDomDecompiler.cs (16)
440case CodeBinaryOperatorType.Multiply: 441case CodeBinaryOperatorType.Divide: 442case CodeBinaryOperatorType.Modulus: 446case CodeBinaryOperatorType.Subtract: 447case CodeBinaryOperatorType.Add: 451case CodeBinaryOperatorType.LessThan: 452case CodeBinaryOperatorType.LessThanOrEqual: 453case CodeBinaryOperatorType.GreaterThan: 454case CodeBinaryOperatorType.GreaterThanOrEqual: 458case CodeBinaryOperatorType.IdentityEquality: 459case CodeBinaryOperatorType.ValueEquality: 460case CodeBinaryOperatorType.IdentityInequality: 464case CodeBinaryOperatorType.BitwiseAnd: 468case CodeBinaryOperatorType.BitwiseOr: 472case CodeBinaryOperatorType.BooleanAnd: 476case CodeBinaryOperatorType.BooleanOr:
Rules\Exceptions.cs (6)
113private CodeBinaryOperatorType m_op; 128public CodeBinaryOperatorType Operator 180CodeBinaryOperatorType op, 200CodeBinaryOperatorType op, 223m_op = (CodeBinaryOperatorType)serializeInfo.GetValue("op", typeof(CodeBinaryOperatorType));
Rules\Expressions.cs (53)
254case CodeBinaryOperatorType.Add: 255case CodeBinaryOperatorType.Subtract: 256case CodeBinaryOperatorType.Multiply: 257case CodeBinaryOperatorType.Divide: 258case CodeBinaryOperatorType.Modulus: 259case CodeBinaryOperatorType.BitwiseAnd: 260case CodeBinaryOperatorType.BitwiseOr: 278case CodeBinaryOperatorType.IdentityEquality: 279case CodeBinaryOperatorType.IdentityInequality: 283case CodeBinaryOperatorType.ValueEquality: 301case CodeBinaryOperatorType.LessThan: 302case CodeBinaryOperatorType.LessThanOrEqual: 303case CodeBinaryOperatorType.GreaterThan: 304case CodeBinaryOperatorType.GreaterThanOrEqual: 322case CodeBinaryOperatorType.BooleanAnd: 323case CodeBinaryOperatorType.BooleanOr: 450CodeBinaryOperatorType operation = binaryExpr.Operator; 452if (operation == CodeBinaryOperatorType.BooleanAnd) 464else if (operation == CodeBinaryOperatorType.BooleanOr) 513private static object EvaluateBinaryOperation(CodeBinaryOperatorExpression binaryExpr, Type lhsType, object lhsValue, CodeBinaryOperatorType operation, Type rhsType, object rhsValue) 524case CodeBinaryOperatorType.Add: 532case CodeBinaryOperatorType.Subtract: 540case CodeBinaryOperatorType.Multiply: 548case CodeBinaryOperatorType.Divide: 556case CodeBinaryOperatorType.Modulus: 564case CodeBinaryOperatorType.BitwiseAnd: 572case CodeBinaryOperatorType.BitwiseOr: 581case CodeBinaryOperatorType.ValueEquality: 589case CodeBinaryOperatorType.IdentityEquality: 591case CodeBinaryOperatorType.IdentityInequality: 594case CodeBinaryOperatorType.LessThan: 602case CodeBinaryOperatorType.LessThanOrEqual: 610case CodeBinaryOperatorType.GreaterThan: 618case CodeBinaryOperatorType.GreaterThanOrEqual: 675case CodeBinaryOperatorType.Modulus: 678case CodeBinaryOperatorType.Multiply: 681case CodeBinaryOperatorType.Divide: 685case CodeBinaryOperatorType.Subtract: 688case CodeBinaryOperatorType.Add: 692case CodeBinaryOperatorType.LessThan: 695case CodeBinaryOperatorType.LessThanOrEqual: 698case CodeBinaryOperatorType.GreaterThan: 701case CodeBinaryOperatorType.GreaterThanOrEqual: 705case CodeBinaryOperatorType.IdentityEquality: 706case CodeBinaryOperatorType.ValueEquality: 709case CodeBinaryOperatorType.IdentityInequality: 713case CodeBinaryOperatorType.BitwiseAnd: 717case CodeBinaryOperatorType.BitwiseOr: 721case CodeBinaryOperatorType.BooleanAnd: 725case CodeBinaryOperatorType.BooleanOr: 740if (binaryExpr.Operator == CodeBinaryOperatorType.ValueEquality) 759if (lhsBinary != null && lhsBinary.Operator == CodeBinaryOperatorType.ValueEquality) 797else if (binaryExpr.Operator == CodeBinaryOperatorType.Subtract)
Rules\Literal.cs (86)
155CodeBinaryOperatorType.Assign, 416CodeBinaryOperatorType comparison, 431if ((lhsFlags == TypeFlags.Bool) && (comparison != CodeBinaryOperatorType.ValueEquality)) 488CodeBinaryOperatorType op, 503case CodeBinaryOperatorType.ValueEquality: 507case CodeBinaryOperatorType.GreaterThan: 511case CodeBinaryOperatorType.GreaterThanOrEqual: 515case CodeBinaryOperatorType.LessThan: 519case CodeBinaryOperatorType.LessThanOrEqual: 523case CodeBinaryOperatorType.Add: 527case CodeBinaryOperatorType.Subtract: 531case CodeBinaryOperatorType.Multiply: 535case CodeBinaryOperatorType.Divide: 539case CodeBinaryOperatorType.Modulus: 543case CodeBinaryOperatorType.BitwiseAnd: 547case CodeBinaryOperatorType.BitwiseOr: 577case CodeBinaryOperatorType.Add: 586case CodeBinaryOperatorType.Subtract: 610case CodeBinaryOperatorType.ValueEquality: 611case CodeBinaryOperatorType.LessThan: 612case CodeBinaryOperatorType.LessThanOrEqual: 613case CodeBinaryOperatorType.GreaterThan: 614case CodeBinaryOperatorType.GreaterThanOrEqual: 647case CodeBinaryOperatorType.Add: 657case CodeBinaryOperatorType.Subtract: 677case CodeBinaryOperatorType.ValueEquality: 678case CodeBinaryOperatorType.LessThan: 679case CodeBinaryOperatorType.LessThanOrEqual: 680case CodeBinaryOperatorType.GreaterThan: 681case CodeBinaryOperatorType.GreaterThanOrEqual: 1026throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1031throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1036throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1041throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1046throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1051throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1056throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1061throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1066throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1071throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1076throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1081throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1086throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1091throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThan, m_type); 1107throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1112throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1117throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1122throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1127throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1132throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1137throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1142throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1147throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1152throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1157throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1162throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1167throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1172throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThan, m_type); 1188throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1193throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1198throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1203throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1208throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1213throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1218throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1223throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1228throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1233throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1238throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1243throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1248throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1253throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.LessThanOrEqual, m_type); 1269throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1274throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1279throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1284throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1289throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1294throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1299throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1304throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1309throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1314throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1319throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1324throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1329throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type); 1334throw new RuleEvaluationIncompatibleTypesException(message, literalValue.GetType(), CodeBinaryOperatorType.GreaterThanOrEqual, m_type);
Rules\Parser\Parser.cs (22)
519private CodeBinaryOperatorType codeDomOperator; 521internal BinaryOperationDescriptor(TokenID token, CodeBinaryOperatorType codeDomOperator) 541: base(token, CodeBinaryOperatorType.IdentityInequality) // kludge 551CodeBinaryOperatorExpression binaryExpr = new CodeBinaryOperatorExpression(left, CodeBinaryOperatorType.ValueEquality, right); 555binaryExpr = new CodeBinaryOperatorExpression(binaryExpr, CodeBinaryOperatorType.ValueEquality, falseExpr); 585new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.Or, CodeBinaryOperatorType.BooleanOr)), 586new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.And, CodeBinaryOperatorType.BooleanAnd)), 588new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.BitOr, CodeBinaryOperatorType.BitwiseOr)), 590new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.BitAnd, CodeBinaryOperatorType.BitwiseAnd)), 592new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.Equal, CodeBinaryOperatorType.ValueEquality), 593new BinaryOperationDescriptor(TokenID.Assign, CodeBinaryOperatorType.ValueEquality), 596new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.Less, CodeBinaryOperatorType.LessThan), 597new BinaryOperationDescriptor(TokenID.LessEqual, CodeBinaryOperatorType.LessThanOrEqual), 598new BinaryOperationDescriptor(TokenID.Greater, CodeBinaryOperatorType.GreaterThan), 599new BinaryOperationDescriptor(TokenID.GreaterEqual, CodeBinaryOperatorType.GreaterThanOrEqual)), 601new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.Plus, CodeBinaryOperatorType.Add), 602new BinaryOperationDescriptor(TokenID.Minus, CodeBinaryOperatorType.Subtract)), 604new BinaryPrecedenceDescriptor(new BinaryOperationDescriptor(TokenID.Multiply, CodeBinaryOperatorType.Multiply), 605new BinaryOperationDescriptor(TokenID.Divide, CodeBinaryOperatorType.Divide), 606new BinaryOperationDescriptor(TokenID.Modulus, CodeBinaryOperatorType.Modulus)) 1311unaryResult = new CodeBinaryOperatorExpression(unaryResult, CodeBinaryOperatorType.ValueEquality, new CodePrimitiveExpression(false)); 1323unaryResult = new CodeBinaryOperatorExpression(new CodePrimitiveExpression(0), CodeBinaryOperatorType.Subtract, unaryResult);
Rules\RuleValidation.cs (16)
547CodeBinaryOperatorType op; 561public EnumOperationMethodInfo(Type lhs, CodeBinaryOperatorType operation, Type rhs, bool isZero) 603case CodeBinaryOperatorType.Add: 615case CodeBinaryOperatorType.Subtract: 646case CodeBinaryOperatorType.ValueEquality: 647case CodeBinaryOperatorType.LessThan: 648case CodeBinaryOperatorType.LessThanOrEqual: 649case CodeBinaryOperatorType.GreaterThan: 650case CodeBinaryOperatorType.GreaterThanOrEqual: 698case CodeBinaryOperatorType.Add: 709case CodeBinaryOperatorType.Subtract: 723case CodeBinaryOperatorType.ValueEquality: 727case CodeBinaryOperatorType.LessThan: 731case CodeBinaryOperatorType.LessThanOrEqual: 735case CodeBinaryOperatorType.GreaterThan: 739case CodeBinaryOperatorType.GreaterThanOrEqual:
System.Xml (2)
System\Xml\Serialization\CodeExporter.cs (1)
359CodeConditionStatement ifStatement = new CodeConditionStatement(new CodeBinaryOperatorExpression(propertyChanged, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null)));
System\Xml\Serialization\XmlCodeExporter.cs (1)
211valueExpression = new CodeBinaryOperatorExpression(valueExpression, CodeBinaryOperatorType.BitwiseOr, enumRef);
XamlBuildTask (13)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (13)
405Operator = CodeBinaryOperatorType.ValueEquality, 442CodeBinaryOperatorType.ValueEquality, 637xmlReaderNotNull.Condition = new CodeBinaryOperatorExpression(xmlReaderVar, CodeBinaryOperatorType.IdentityInequality, 644xamlReaderNotNull.Condition = new CodeBinaryOperatorExpression(xamlReaderVar, CodeBinaryOperatorType.IdentityInequality, 651objWriterNotNull.Condition = new CodeBinaryOperatorExpression(objWriterVar, CodeBinaryOperatorType.IdentityInequality, 749Operator = CodeBinaryOperatorType.LessThan, 762Operator = CodeBinaryOperatorType.Add, 788Operator = CodeBinaryOperatorType.BooleanOr, 1107new CodeBinaryOperatorExpression(assemblyList, CodeBinaryOperatorType.IdentityEquality, new CodePrimitiveExpression(null)), 1160CodeBinaryOperatorType.IdentityInequality, 1166new CodeBinaryOperatorExpression(xsc, CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null)), 1176CodeBinaryOperatorType.GreaterThan, 1238CodeBinaryOperatorType.IdentityInequality, new CodePrimitiveExpression(null));