What does the : indicates in the class or interface definition in C#.
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; }
}
:
is used to indicate that the interface on the left side of the operator is implementing ( technically, the classes implementing the interface will give the implementation) the interfaces on the right.
:
is used in the same way to indicate when a class is implementing one or more interfaces as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With