Navigation: X# 文档 > X# 编译器错误和警告
Error XS7006
Expressions and statements can only occur in a method body