23 references to GetDelegateType
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Conversions.cs (2)
742if (targetType.GetDelegateType() is { } delegateType) 779var delegateType = targetType.GetDelegateType();
Binder\Binder_Invocation.cs (1)
1703(object)parameterType.GetDelegateType() != null)
Binder\Binder_Statements.cs (1)
2073var delegateType = targetType.GetDelegateType();
Binder\Semantics\Conversions\Conversions.cs (1)
182var delegateType = type.GetDelegateType();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (4)
607if (argument.Kind == BoundKind.UnboundLambda && target.Type.GetDelegateType() is { }) 1291var delegateType = target.Type.GetDelegateType(); 1448var delegateType = target.Type.GetDelegateType(); 1501var delegateInvokeMethod = target.Type.GetDelegateType()?.DelegateInvokeMethod();
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
2541(object)(d = t.GetDelegateType()) != null && 2805if ((object)(d1 = type1.GetDelegateType()) != null) 2809if ((object)(d2 = type2.GetDelegateType()) != null) 2870else if ((object)type2.GetDelegateType() != null) 2920if ((object)(d1 = type1.GetDelegateType()) != null) 2924if ((object)(d2 = type2.GetDelegateType()) != null)
BoundTree\UnboundLambda.cs (3)
146var delegateType = Type.GetDelegateType(); 304var delegateReturnType = delegateType?.GetDelegateType()?.DelegateInvokeMethod?.ReturnType as NamedTypeSymbol; 615return delegateType.GetDelegateType()?.DelegateInvokeMethod;
FlowAnalysis\NullableWalker.cs (2)
1798lambdaIsExactMatch = updatedSymbol.Equals(boundLambda.Type!.GetDelegateType(), TypeCompareKind.ConsiderEverything); 8006var delegateType = targetType.GetDelegateType();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
773var underlyingDelegateType = node.Type.GetDelegateType();
Symbols\TypeSymbolExtensions.cs (2)
391return (TypeSymbol?)GetDelegateType(type) ?? type as FunctionPointerTypeSymbol; 549return type.GetDelegateType()!.DelegateInvokeMethod;