45 references to Cmp
System.Runtime.Serialization (45)
System\Runtime\Serialization\CodeGenerator.cs (30)
448
If(
Cmp
.NotEqualTo);
462
OpCode GetBranchCode(
Cmp
cmp)
466
case
Cmp
.LessThan:
468
case
Cmp
.EqualTo:
470
case
Cmp
.LessThanOrEqualTo:
472
case
Cmp
.GreaterThan:
474
case
Cmp
.NotEqualTo:
477
Fx.Assert(cmp ==
Cmp
.GreaterThanOrEqualTo, "Unexpected cmp");
482
Cmp
GetCmpInverse(
Cmp
cmp)
486
case
Cmp
.LessThan:
487
return
Cmp
.GreaterThanOrEqualTo;
488
case
Cmp
.EqualTo:
489
return
Cmp
.NotEqualTo;
490
case
Cmp
.LessThanOrEqualTo:
491
return
Cmp
.GreaterThan;
492
case
Cmp
.GreaterThan:
493
return
Cmp
.LessThanOrEqualTo;
494
case
Cmp
.NotEqualTo:
495
return
Cmp
.EqualTo;
497
Fx.Assert(cmp ==
Cmp
.GreaterThanOrEqualTo, "Unexpected cmp");
498
return
Cmp
.LessThan;
502
internal void If(
Cmp
cmpOp)
514
internal void If(object value1,
Cmp
cmpOp, object value2)
530
internal void ElseIf(object value1,
Cmp
cmpOp, object value2)
1792
If(
Cmp
.EqualTo);
1919
EmitSourceInstruction("Branch if " + GetCmpInverse(
Cmp
.EqualTo).ToString() + " to " + ifState.ElseBegin.GetHashCode().ToString(NumberFormatInfo.InvariantInfo));
1921
ilGen.Emit(GetBranchCode(
Cmp
.EqualTo), ifState.ElseBegin);
1930
If(
Cmp
.NotEqualTo);
1940
internal void BeginWhileBody(
Cmp
cmpOp)
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (7)
537
ilg.If(objectId,
Cmp
.EqualTo, Globals.NullObjectId);
594
ilg.If(objectId,
Cmp
.NotEqualTo, Globals.NullObjectId);
814
ilg.BeginWhileBody(
Cmp
.NotEqualTo);
818
ilg.If(
Cmp
.NotEqualTo);
878
ilg.If(objectLocal,
Cmp
.EqualTo, null);
894
ilg.If(objectLocal,
Cmp
.EqualTo, null);
914
ilg.If(size,
Cmp
.EqualTo, i);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
715
ilg.If(memberValue,
Cmp
.EqualTo, null);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (6)
391
ilg.If(requiredIndexLocal,
Cmp
.LessThan, memberCount);
493
ilg.If(objectId,
Cmp
.EqualTo, Globals.NullObjectId);
550
ilg.If(objectId,
Cmp
.NotEqualTo, Globals.NullObjectId);
661
ilg.If(size,
Cmp
.EqualTo, -1);
752
ilg.If(objectLocal,
Cmp
.EqualTo, null);
774
ilg.If(size,
Cmp
.EqualTo, i);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
692
ilg.If(memberValue,
Cmp
.EqualTo, null);