10 March 2019

c#basics class-T Indexer IEnumerable-T

toop

We learned about Indexers and the different types of usages. we explored creation of Generic classes using T and implementing indexer, ctor, methods, properties, ToString using type T. we saw how to make foreach available for our class using IEnumerable<T>

Generic

More topics covered:

    • Indexer methods – returning different types
    • T constrains – interface implementations, default ctor()
    • Making types out of Class<T>
    • IEnumerbale – implementation using List.GetEnumerator()

Links:

Leave a comment

Design a site like this with WordPress.com
Get started