Archives for C# - Page 3

Generics

Generics are classes, methods, or interfaces that adapt their behaviors depending the data types assigned to them. For example, we can make a generic method that can accept any kinds of data.…
Continue Reading

Iterators

An iterator is a block of code that supplies all the values to be used in a foreach loop.  A class that represents a collection can implement the  interface. This interface requires an  implementation for…
Continue Reading