Here is the listing of C# programming examples on Interfaces.
C# Examples on Implementation of Various Types of Interfaces
An interface contains the signatures of methods, properties or events. IDumpable Interface represents a collection of dumpable objects. Ilist Interface represents a non-generic collection of objects that can be individually accessed by index. IDictionary Interface represents a generic collection of key/value pairs. IComparable allows custom sorting of objects when implemented. IEnumerable Interface provides an enumerator, which supports a simple iteration over a non-generic collection. The programs in the following section IIlustrates handling an event declared in an interface, demonstrates IDumpable Interface, demonstrates iList Interface, demonstrates iDictionary Interface, implements IComparable Interface and implements IEnumerable interface. The remaining programs in the section demonstrates the properties of an interface and implements the transactions using interface.