GildedRose-Refactoring-Kata/csharp
@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
..
Properties Added files needed to run the csharp project on VS15/17 2017-09-01 00:00:42 -03:00
.gitignore Added .gitignore file 2017-08-31 23:58:11 -03:00
App.config Added files needed to run the csharp project on VS15/17 2017-09-01 00:00:42 -03:00
ApprovalTest.cs fix approval tests to work on windows, and use Approvals framework 2019-08-28 10:30:34 +02:00
csharp.csproj fix approval tests to work on windows, and use Approvals framework 2019-08-28 10:30:34 +02:00
csharp.sln Added files needed to run the csharp project on VS15/17 2017-09-01 00:00:42 -03:00
GildedRose.cs Update GildedRose.cs 2023-04-24 02:00:56 +03:00
GildedRoseTest.cs Added files needed to run the csharp project on VS15/17 2017-09-01 00:00:42 -03:00
Item.cs remove ApprovalTest since the other languages don't have one 2018-08-10 14:43:38 +02:00
packages.config Updated NUnit to 3.9 2017-11-19 12:12:04 +01:00
Program.cs remove ApprovalTest since the other languages don't have one 2018-08-10 14:43:38 +02:00