共用方式為


IMethodSymbol.AssociatedAnonymousDelegate 屬性

定義

如果此方法是 Lambda 方法 (MethodKind = MethodKind.LambdaMethod) ,而且有與其相關聯的匿名委派,則會傳回此委派。

如果符號不是 Lambda,或它沒有與其相關聯的匿名委派,則傳回 null。

public:
 property Microsoft::CodeAnalysis::INamedTypeSymbol ^ AssociatedAnonymousDelegate { Microsoft::CodeAnalysis::INamedTypeSymbol ^ get(); };
public Microsoft.CodeAnalysis.INamedTypeSymbol AssociatedAnonymousDelegate { get; }
public Microsoft.CodeAnalysis.INamedTypeSymbol? AssociatedAnonymousDelegate { get; }
member this.AssociatedAnonymousDelegate : Microsoft.CodeAnalysis.INamedTypeSymbol
Public ReadOnly Property AssociatedAnonymousDelegate As INamedTypeSymbol

屬性值

適用於