Dilly
Dilly
CC#
Created by Dilly on 2/14/2025 in #help
✅ Separating WinForms & Backend
Recently I've been put on a project for a company working on a windows desktop application. The app is made using winforms and C#. It works alright but the main problem is that all of the code is one homogenous blob. If you want to work on a part of the backend, there are front end components in the same file... This makes it very difficult to work with, and makes doing things like serializing classes to JSON basically impossible due to all of the winforms components within any given class. I've started trying to separate the objects from the front end bits but its a lot and the more I separate the more convoluted it gets. Am I doing this in vein, and if not are there any tools or strategies that could help? (no, I can not use AI due to this being NDA)
47 replies
CC#
Created by Dilly on 10/2/2023 in #help
❔ Comparing Types using local var Type type
Hello, I am trying to write a method comparing types to clean up my code. I am trying to use a single method to sort through a list and pull out specific elements by type. (type being a child class of the lists type)
28 replies