Looking for c# Keywords? Try Ask4Keywords

C# Language Интерфейс реализации проекта


пример

public interface IShape
{
    decimal Area();
}

public struct Rectangle : IShape
{
    public decimal Length { get; set; }
    public decimal Width { get; set; }

    public decimal Area()
    {
        return Length * Width;
    }
}