C#中的类或接口(interface)定义中的:表示什么。
public interface IServer : IServerManager, ISimulation, ISiteEx
{
/// <summary>
/// Returns the highest game version that supported by this server.
/// Higher versions aren't guaranteed to work perfect.
/// </summary>
Version MaxSupportedGameVersion { get; }
/// <summary>
/// Gets/sets the current server configuration.
/// </summary>
ServerConfiguration Configuration { get; set; }
}
最佳答案
:
用于表示算子左边的接口(interface)正在实现(从技术上讲,实现接口(interface)的类会给出实现)右边的接口(interface)。
:
以相同的方式用于指示类何时也正在实现一个或多个接口(interface)。
关于c# - 这段 C# 代码中的冒号是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7656522/