1 write to _typeDest
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (1)
52
_typeDest
= typeDest;
34 references to _typeDest
Microsoft.CSharp (34)
Microsoft\CSharp\RuntimeBinder\Semantics\ExplicitConversion.cs (34)
101
if (_binder.BindImplicitConversion(_exprSrc, _typeSrc,
_typeDest
, _needsExprDest, out _exprDest, _flags | CONVERTTYPE.ISEXPLICIT))
106
if (_typeSrc == null ||
_typeDest
== null ||
_typeDest
is MethodGroupType)
111
if (
_typeDest
is NullableType)
132
switch (
_typeDest
.TypeKind)
135
Debug.Fail($"Bad type kind: {
_typeDest
.TypeKind}");
145
if (bindExplicitConversionToArray((ArrayType)
_typeDest
))
162
AggCastResult result = bindExplicitConversionToAggregate(
_typeDest
as AggregateType);
181
return _binder.bindUserDefinedConversion(_exprSrc, _typeSrc,
_typeDest
, _needsExprDest, out _exprDest, false);
191
Debug.Assert(
_typeDest
!= null);
195
if (
_typeDest
.IsValueType && _binder.BindExplicitConversion(null, _typeSrc.StripNubs(),
_typeDest
, _flags | CONVERTTYPE.NOUDC))
206
if (!_binder.BindExplicitConversion(valueSrc, valueSrc.Type,
_typeDest
, _needsExprDest, out _exprDest, _flags | CONVERTTYPE.NOUDC))
221
return _binder.bindUserDefinedConversion(_exprSrc, _typeSrc,
_typeDest
, _needsExprDest, out _exprDest, false);
237
Debug.Assert(
_typeDest
!= null);
239
if (!(_typeSrc is ArrayType arrSrc) || !arrSrc.IsSZArray || !(
_typeDest
is AggregateType aggDest)
265
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
306
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
334
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
368
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK);
388
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);
437
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
449
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);
464
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
489
_binder.bindSimpleCast(_exprDest,
_typeDest
, out _exprDest);
523
ConstCastResult result = _binder.bindConstantCast(exprCast,
_typeDest
, _needsExprDest, out _exprDest, true);
571
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
582
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);
589
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_UNBOX);
635
ConstCastResult result = _binder.bindConstantCast(_exprSrc,
_typeDest
, _needsExprDest, out _exprDest, true);
659
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, (_flags & CONVERTTYPE.CHECKOVERFLOW) != 0 ? EXPRFLAG.EXF_CHECKOVERFLOW : 0);
696
_exprSrc,
_typeDest
, out _exprDest,
711
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest, EXPRFLAG.EXF_REFCHECK | (_exprSrc?.Flags & EXPRFLAG.EXF_CANTBENULL ?? 0));
731
_binder.bindSimpleCast(_exprSrc,
_typeDest
, out _exprDest);