这是什么C#结构

Ale*_*lex 0 c#

我遇到了以下代码,我不确定它是什么意思?

public class Countries
{
    public Countries();

    public static bool AllowInvoice(string pCountryCode);
    public static bool IsPostcodeMandatory(string pCountryCode);
}
Run Code Online (Sandbox Code Playgroud)

然后以下列方式调用此代码:

Contact.IncludePostCode = Countries.IsPostcodeMandatory(countryCode);
Run Code Online (Sandbox Code Playgroud)

在我看来,这是一个界面?正在定义方法的地方,但是正在写其他人的身体?

如果是这种情况,我希望当我搜索整个项目时,我会找到该方法体的代码,但我找不到它在哪里?

有什么建议?

Cod*_*ter 8

此类在引用的程序集中定义,Visual Studio向您显示类的元数据.

你在这里看到的只是方法签名,而不是它们的实现.此代码无法编译.