49 references to AggCastResult
Microsoft.CSharp (49)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (49)
161
AggCastResult
result = bindExplicitConversionToAggregate(_typeDest as AggregateType);
163
if (result ==
AggCastResult
.Success)
168
if (result ==
AggCastResult
.Abort)
410
private
AggCastResult
bindExplicitConversionFromEnumToAggregate(AggregateType aggTypeDest)
417
return
AggCastResult
.Failure;
431
return
AggCastResult
.Failure;
439
return
AggCastResult
.Success;
443
return
AggCastResult
.Abort;
449
return
AggCastResult
.Success;
453
private
AggCastResult
bindExplicitConversionFromDecimalToEnum(AggregateType aggTypeDest)
466
return
AggCastResult
.Success; // else, don't fold and use a regular cast, below.
470
return
AggCastResult
.Abort;
491
return bIsConversionOK ?
AggCastResult
.Success :
AggCastResult
.Failure;
495
private
AggCastResult
bindExplicitConversionFromEnumToDecimal(AggregateType aggTypeDest)
525
return
AggCastResult
.Success; // else, don't fold and use a regular cast, below.
529
return
AggCastResult
.Abort;
545
return
AggCastResult
.Success;
549
private
AggCastResult
bindExplicitConversionToEnum(AggregateType aggTypeDest)
557
return
AggCastResult
.Failure;
573
return
AggCastResult
.Success;
577
return
AggCastResult
.Abort;
582
return
AggCastResult
.Success;
589
return
AggCastResult
.Success;
591
return
AggCastResult
.Failure;
595
private
AggCastResult
bindExplicitConversionBetweenSimpleTypes(AggregateType aggTypeDest)
608
return
AggCastResult
.Failure;
627
return
AggCastResult
.Failure;
636
return
AggCastResult
.Success; // else, don't fold and use a regular cast, below.
640
return
AggCastResult
.Abort;
660
return bConversionOk ?
AggCastResult
.Success :
AggCastResult
.Failure;
664
private
AggCastResult
bindExplicitConversionBetweenAggregates(AggregateType aggTypeDest)
683
return
AggCastResult
.Failure;
700
return
AggCastResult
.Success;
710
return
AggCastResult
.Success;
712
return
AggCastResult
.Failure;
716
private
AggCastResult
bindExplicitConversionFromPointerToInt(AggregateType aggTypeDest)
726
return
AggCastResult
.Failure;
730
return
AggCastResult
.Success;
734
private
AggCastResult
bindExplicitConversionToAggregate(AggregateType aggTypeDest)
739
AggCastResult
result = bindExplicitConversionFromEnumToAggregate(aggTypeDest);
740
if (result !=
AggCastResult
.Failure)
746
if (result !=
AggCastResult
.Failure)
752
if (result !=
AggCastResult
.Failure)
758
if (result !=
AggCastResult
.Failure)
764
if (result !=
AggCastResult
.Failure)
773
return
AggCastResult
.Abort;
776
return
AggCastResult
.Failure;