1 write to _typeDest
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (1)
51
_typeDest
= typeDest;
34 references to _typeDest
Microsoft.CSharp (34)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (34)
100
if (_binder.BindImplicitConversion(_exprSrc, _typeSrc,
_typeDest
, _needsExprDest, out _exprDest, _flags | CONVERTTYPE.ISEXPLICIT))
105
if (_typeSrc == null ||
_typeDest
== null ||
_typeDest
is MethodGroupType)
110
if (
_typeDest
is NullableType)
131
switch (
_typeDest
.TypeKind)
134
Debug.Fail($"Bad type kind: {
_typeDest
.TypeKind}");
144
if (bindExplicitConversionToArray((ArrayType)
_typeDest
))
161
AggCastResult result = bindExplicitConversionToAggregate(
_typeDest
as AggregateType);
180
return _binder.bindUserDefinedConversion(_exprSrc, _typeSrc,
_typeDest
, _needsExprDest, out _exprDest, false);
190
Debug.Assert(
_typeDest
!= null);
194
if (
_typeDest
.IsValueType && _binder.BindExplicitConversion(null, _typeSrc.StripNubs(),
_typeDest
, _flags | CONVERTTYPE.NOUDC))
205
if (!_binder.BindExplicitConversion(valueSrc, valueSrc.Type,
_typeDest
, _needsExprDest, out _exprDest, _flags | CONVERTTYPE.NOUDC))
220
return _binder.bindUserDefinedConversion(_exprSrc, _typeSrc,
_typeDest
, _needsExprDest, out _exprDest, false);
236
Debug.Assert(
_typeDest
!= null);
238
if (!(_typeSrc is ArrayType arrSrc) || !arrSrc.IsSZArray || !(
_typeDest
is AggregateType aggDest)
264
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
305
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
333
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
367
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
387
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);
436
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
448
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);
463
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
488
_binder.bindSimpleCast(_exprDest,
_typeDest
, out _exprDest);
522
ConstCastResult result = _binder.bindConstantCast(exprCast,
_typeDest
, _needsExprDest, out _exprDest, true);
570
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
581
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);
588
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_UNBOX);
633
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
657
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, (_flags & CONVERTTYPE.CHECKOVERFLOW) != 0 ? EXPRFLAG.EXF_CHECKOVERFLOW : 0);
694
_exprSrc,
_typeDest
, out _exprDest,
709
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK | (_exprSrc?.Flags & EXPRFLAG.EXF_CANTBENULL ?? 0));
729
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);