1 write to _typeSrc
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (1)
51
_typeSrc
= typeSrc;
45 references to _typeSrc
Microsoft.CSharp (45)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (45)
101
if (_binder.BindImplicitConversion(_exprSrc,
_typeSrc
, _typeDest, _needsExprDest, out _exprDest, _flags | CONVERTTYPE.ISEXPLICIT))
106
if (
_typeSrc
== null || _typeDest == null || _typeDest is MethodGroupType)
117
if (
_typeSrc
is NullableType)
181
return _binder.bindUserDefinedConversion(_exprSrc,
_typeSrc
, _typeDest, _needsExprDest, out _exprDest, false);
190
Debug.Assert(
_typeSrc
!= null);
195
if (_typeDest.IsValueType && _binder.BindExplicitConversion(null,
_typeSrc
.StripNubs(), _typeDest, _flags | CONVERTTYPE.NOUDC))
205
Debug.Assert(valueSrc.Type ==
_typeSrc
.StripNubs());
221
return _binder.bindUserDefinedConversion(_exprSrc,
_typeSrc
, _typeDest, _needsExprDest, out _exprDest, false);
236
Debug.Assert(
_typeSrc
!= null);
239
if (!(
_typeSrc
is ArrayType arrSrc) || !arrSrc.IsSZArray || !(_typeDest is AggregateType aggDest)
281
if (!arrayDest.IsSZArray || !(
_typeSrc
is AggregateType aggSrc) || !aggSrc.IsInterfaceType || aggSrc.TypeArgsAll.Count != 1)
346
Debug.Assert(
_typeSrc
!= null);
349
if (
_typeSrc
is ArrayType arrSrc)
365
if (_binder.canConvert(GetPredefindType(PredefinedType.PT_ARRAY),
_typeSrc
, CONVERTTYPE.NOUDC))
385
if (
_typeSrc
is PointerType ||
_typeSrc
.FundamentalType <= FUNDTYPE.FT_LASTINTEGRAL &&
_typeSrc
.IsNumericType)
413
Debug.Assert(
_typeSrc
!= null);
416
if (!
_typeSrc
.IsEnumType)
456
Debug.Assert(
_typeSrc
!= null);
457
Debug.Assert(
_typeSrc
.IsPredefType(PredefinedType.PT_DECIMAL));
484
bIsConversionOK = _binder.bindUserDefinedConversion(_exprSrc,
_typeSrc
, underlyingType, _needsExprDest, out _exprDest, false);
498
Debug.Assert(
_typeSrc
!= null);
501
Debug.Assert(
_typeSrc
.IsEnumType);
503
AggregateType underlyingType =
_typeSrc
.UnderlyingEnumType;
552
Debug.Assert(
_typeSrc
!= null);
561
if (
_typeSrc
.IsPredefType(PredefinedType.PT_DECIMAL))
566
if (
_typeSrc
.IsNumericType ||
_typeSrc
.IsPredefined &&
_typeSrc
.PredefinedType == PredefinedType.PT_CHAR)
585
else if (
_typeSrc
.IsPredefined &&
586
(
_typeSrc
.IsPredefType(PredefinedType.PT_OBJECT) ||
_typeSrc
.IsPredefType(PredefinedType.PT_VALUE) ||
_typeSrc
.IsPredefType(PredefinedType.PT_ENUM)))
605
Debug.Assert(
_typeSrc
!= null);
608
if (!
_typeSrc
.IsSimpleType || !aggTypeDest.IsSimpleType)
615
Debug.Assert(
_typeSrc
.IsPredefined && aggDest.IsPredefined());
617
PredefinedType ptSrc =
_typeSrc
.PredefinedType;
655
bConversionOk = _binder.bindUserDefinedConversion(_exprSrc,
_typeSrc
, aggTypeDest, _needsExprDest, out _exprDest, false);
680
Debug.Assert(
_typeSrc
!= null);
683
if (!(
_typeSrc
is AggregateType atSrc))
708
CConversions.HasGenericDelegateExplicitReferenceConversion(
_typeSrc
, aggTypeDest))
726
if (!(
_typeSrc
is PointerType) || aggTypeDest.FundamentalType > FUNDTYPE.FT_LASTINTEGRAL || !aggTypeDest.IsNumericType)
738
Debug.Assert(
_typeSrc
!= null);
771
if (
_typeSrc
is VoidType)