Home arrow C# arrow Interface, IEnumerable and IEnumerator in C#
C#

Interface, IEnumerable and IEnumerator in C#


The concept of an interface is an important element in object-oriented programming. It's what makes OOP so structured but flexible at the same time. In this article James shows us what an interface is and also shows us how to implement some pre-defined interfaces using C#.

Author Info:
By: James Yang
Rating: 3 stars3 stars3 stars3 stars3 stars / 154
May 15, 2002
TABLE OF CONTENTS:
  1. · Interface, IEnumerable and IEnumerator in C#
  2. · Object Oriented Programming
  3. · Using interfaces
  4. · Conclusion

print this article
SEARCH DEVARTICLES

Interface, IEnumerable and IEnumerator in C#
(Page 1 of 4 )

The concept of an interface is an important element in object-oriented programming. It's what makes OOP so structured but flexible at the same time. By creating interfaces and implementing interfaces, your applications become more reusable and open. Here, when I say open, I mean that it opens opportunities for developers to create applications that can work with other applications that arenít their own.

In this article we're going to examine interfaces in general, as well as C#'s IEnumerable and IEnumerator interfaces. By the end of this article you should have a fairly good idea of what an interface is, and you should also be able to comfortably implement your own interfaces into your C# applications.

I will assume that you're at an intermediate level with C#, and that you are also familiar with OOP and many of its buzzwords, such as polymorphism, inheritance, class and object.
blog comments powered by Disqus
C# ARTICLES

- Introduction to Objects and Classes in C#, P...
- Visual C#.NET, Part 1: Introduction to Progr...
- C# - An Introduction
- Hotmail Exposed: Access Hotmail using C#
- Razor Sharp C#
- Introduction to Objects and Classes in C#
- Making Your Code CLS Compliant
- Programming with MySQL and .NET Technologies
- Socket Programming in C# - Part II
- Socket Programming in C# - Part I
- Creational Patterns in C#
- Type Conversions
- Creating Custom Delegates and Events in C#
- Inheritance and Polymorphism
- Understanding Properties in C#

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials