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(); } }
Yes.