1 override of IsDelegateType
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
233
public override bool
IsDelegateType
=> OwningAggregate.IsDelegate();
12 references to IsDelegateType
Microsoft.CSharp (12)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
584
if (Name == SpecialNames.Invoke && callingObject.Type.
IsDelegateType
)
727
if (payload is InvokeBinder && !callingObject.Type.
IsDelegateType
)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
1152
_pGroup.OptionalObject.Type.
IsDelegateType
&&
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (1)
486
TypeManager.SubstType(pSrcType, pAggType, pAggType.TypeArgsAll).
IsDelegateType
;
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (7)
694
if (!info.ValidForDelegate() || !info.type1.
IsDelegateType
&& !info.type2.
IsDelegateType
)
710
bool t1tot2 = info.type2.
IsDelegateType
&& canConvert(info.arg1, info.type2);
711
bool t2tot1 = info.type1.
IsDelegateType
&& canConvert(info.arg2, info.type1);
939
if (canConvert(info.arg1, typeDel) && canConvert(info.arg2, typeDel) && !type1.
IsDelegateType
&& !type2.
IsDelegateType
)
1972
Debug.Assert(arg1.Type == arg2.Type && (arg1.Type.
IsDelegateType
|| arg1.Type.IsPredefType(PredefinedType.PT_DELEGATE)));
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (1)
243
return pDest.
IsDelegateType
&& HasDelegateConversion(aggSource, aggDest);