thevoncarstein
thevoncarstein
CC#
Created by thevoncarstein on 12/18/2023 in #help
Git does not show changes
Have a nice day guys and sorry for an off-topic question. Is there any possible cause for a file in a commit does not show its changes after merging? I merged a request that had a file X updated some code. After merging using Gitlab, the file X 'magically' lose some of its code but does not show the changes on Git GUIs like Source Tree, Fork or even Gitlab. I could only track the changes via git diff command.
3 replies
CC#
Created by thevoncarstein on 8/9/2023 in #help
❔ How to auto import namespace in VS Code?
3 replies
CC#
Created by thevoncarstein on 2/9/2023 in #help
❔ Encapsulate an enum from legacy code.
Hi everyone, I'd like to encapsulate (?) an enum which had a lot of implements in legacy code. I want to modify and add more elements to the enum. The problem is the legacy code is not ... in a good shape and modifying it directly produces a handful of bugs and time-consuming errors. I have tried using 2 methods: - The first one is to make the class that hold the enum become an abstract class and migrate all its code to a derived class. This method helps me a lot with other enum-free classes. But as you know, enum can't be abstract. (Or is it?) - The second one is to convert the enum to an IComparable class (Like this https://learn.microsoft.com/en-us/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/enumeration-classes-over-enum-types). But the problem is legacy codes use switch/case which requires constants to compare. If anyone has experience with this or has some tips or ideas, I would really appreciate your help. Thank you for taking the time to read my question.
7 replies