AccessorDeclarationSyntax.Body 属性

定义

获取可能为空的可选正文块,但如果没有大括号,则为 null。

public:
 property Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Body { Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ get(); };
public Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Body { get; }
public Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? Body { get; }
member this.Body : Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public ReadOnly Property Body As BlockSyntax

属性值

适用于