1 write to ToType
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\Conversions\UserDefinedConversionAnalysis.cs (1)
81this.ToType = toType;
11 references to ToType
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1742switchGoverningType = analysis.ToType;
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (3)
463System.Func<UserDefinedConversionAnalysis, bool> isValid = conv => IsEncompassedBy(conv.ToType, target, ref inLambdaUseSiteInfo); 466var result = MostEncompassingType(u, isValid, conv => conv.ToType, ref inLambdaUseSiteInfo); 472return MostEncompassedType(u, conv => conv.ToType, ref useSiteInfo);
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (4)
404return MostEncompassingType(u, conv => conv.ToType, ref useSiteInfo); 415if (!TypeSymbol.Equals(conv.ToType, conv.Operator.ReturnType, TypeCompareKind.ConsiderEverything2)) 425return MostSpecificConversionOperator(conv => TypeSymbol.Equals(conv.FromType, sx, TypeCompareKind.ConsiderEverything2) && TypeSymbol.Equals(conv.ToType, tx, TypeCompareKind.ConsiderEverything2), u); 968int? best = MostSpecificConversionOperator(conv => conv.ToType.IsValidV6SwitchGoverningType(isTargetTypeOfUserDefinedOp: true), u);
FlowAnalysis\NullableWalker.cs (1)
9436TypeWithAnnotations.Create(conversion.BestUserDefinedConversionAnalysis!.ToType),
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
913if (!TypeSymbol.Equals(userDefined.Type, conversion.BestUserDefinedConversionAnalysis.ToType, TypeCompareKind.ConsiderEverything2)) 917conversion.BestUserDefinedConversionAnalysis.ToType,