phaseshift
phaseshift
CC#
Created by Faker on 3/15/2025 in #help
✅ When to use interfaces and why
then if anything wants to do crud stuff for its types then it implements the interface for the types
43 replies
CC#
Created by Faker on 3/15/2025 in #help
✅ When to use interfaces and why
no, you have a crud system. the crud system should define the interface
43 replies
CC#
Created by Faker on 3/15/2025 in #help
✅ When to use interfaces and why
why is that ' a thing'? what is the underlying question?
43 replies
CC#
Created by Faker on 3/15/2025 in #help
✅ When to use interfaces and why
inversion of control is a topic you can read up on
43 replies
CC#
Created by Mìscha on 3/9/2025 in #help
Switching between forms in WinForm app
whats wrong with using CreateForm() function on the form manager?
7 replies
CC#
Created by MilkDog on 1/8/2025 in #help
Reccomendations for starter/intermediate c# projects
5 replies
CC#
Created by MilkDog on 1/8/2025 in #help
Reccomendations for starter/intermediate c# projects
ray tracer always a good one
5 replies
CC#
Created by Frite on 1/6/2025 in #help
✅ How to use the Visual Studio memory diagnostic
That in its own doesn't mean there is a leak
8 replies
CC#
Created by reproj2000 on 12/30/2024 in #help
what type of pattern would u use?
Flyweight pattern might apply here
4 replies
CC#
Created by Get on 12/31/2024 in #help
PersistedAssemblyBuilder to generate executable
If you try clicking the exe in explorer to run it it might give more details in the error message if it's really a dll load issue
19 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
👍
42 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
It would change the name, yes it needs to match everywhere. You dont need to change it
42 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
it doesnt do anything, just convention
42 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
BitBoard _bitboard = new(); it's what I'm calling that where the init is 'inline' with the member declaration
42 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
If BitBoard has constructor arguments then add them into new(...)
42 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
you can either let null be a valid state for it (not suggested) by changing the type to BitBoard?, or you can init it inline, BitBoard _bitboard = new();, or you can do similar in a constructor
42 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
yeah, structs are always non-null
42 replies
CC#
Created by ElectricTortoise on 12/20/2024 in #help
Why is the struct allowed but the class isn't?
(a member that is a class type)
42 replies