Click here to Skip to main content
14,922,492 members
Articles / Programming Languages / C#

Stats

38.2K views
159 downloads
14 bookmarked

Operator Overloading with Generics - Using Inheritance to Allow Use of C# Operators (C# 2005)

Rate me:
Please Sign up or sign in to vote.
3.70/5 (9 votes)
1 Oct 2006CPOL2 min read
An article on how to use C# operators on the parameter types in your generic code (normally the compiler does not allow this). This solution just uses inheritance, so is fairly easy to maintain.

Views

Downloads

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

theory2006
Web Developer
United Kingdom United Kingdom
No Biography provided

Comments and Discussions