Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
From the author of

Summary

This article showed you how to make your C# classes work effectively with generic .NET interfaces. We illustrated issues involving copying, which are dealt with in C#—not at the language level (as in C++ with the copy constructor), but rather through the .NET Framework and the ICloneable interface. We also looked at comparing objects, which is a requirement for sorting. The key interface here is IComparable. Once you understand the basic concept of working with generic interfaces in .NET, you should be able to make your program work with the many other interfaces defined by the .NET Framework, as required for your particular situation.

  • + Share This
  • 🔖 Save To Your Account