Commit Graph

4 Commits

Author SHA1 Message Date
@arik
68ee4cc4cd
Update GildedRose.cs
In this refactored version, I've made the following changes:

Changed the name of the private member variable to use camelCase naming convention and added a "readonly" keyword to make it immutable.
Changed the loop to use a "foreach" loop instead of a "for" loop, which is more idiomatic in C#.
Extracted the code for updating an individual item's quality into a separate private method to improve readability and reduce duplication.
Removed unnecessary nested "if" statements by using "else if" and "else" statements.
Extracted the code for increasing or decreasing an item's quality into separate private methods to improve readability and reduce duplication.
Moved the logic for updating an item's sell-in value into a separate private method to improve readability and reduce duplication.
2023-04-24 02:00:56 +03:00
Diego Sousa
23166143a2 Added files needed to run the csharp project on VS15/17 2017-09-01 00:00:42 -03:00
Diego Sousa
46c61e1f4e Removing csharp project 2017-08-31 23:51:11 -03:00
emilybache
567c27854a Removed all the code except for the GildedRose kata from this repo 2013-06-10 14:42:41 +02:00