CSharp - What is the output: a structure implements an interface?

Question

Can a structure implement an interface?

using System;


interface IMyInterface
{
    void ShowMe();
}
struct MyStructure : IMyInterface
{
    public void ShowMe()
    {
        Console.WriteLine("MyStructure is implementing IMyInterface");
    }
}
class Program
{
    static void Main(string[] args)
    {

        MyStructure myS = new MyStructure();
        myS.ShowMe();
    }
}


Click to view the answer

Yes.