Click here to Skip to main content
15,887,296 members
Articles / Desktop Programming / MFC

Advantages of Making Your Methods Idempotent and Static in C#

Rate me:
Please Sign up or sign in to vote.
4.55/5 (10 votes)
3 Jul 2014CPOL3 min read 42.9K   9  
A method is idempotent when the same input(s) always return the same output.  This method is idempotent: This method is not idempotent: When adding methods to classes, many developers spend little time deciding if the method should be idempotent.  Making use of the properties in the class causes the

Views

Daily Counts

License

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


Written By
Software Developer (Senior) Kraft Software LLC
United States United States
Rob Kraft is an independent software developer for Kraft Software LLC. He has been a software developer since the mid 80s and has a Master's Degree in Project Management. Rob lives near Kansas City, Missouri.

Comments and Discussions