arch_il
✅ How to force C# to copy data?
I am trying to debug code and I have a list of
rooms
and another list of backup_rooms
. They both get initialized at the same time, but when I need use backup room I find that is has changed (It is never used in code). My guess is, that a reference is created to an object rather than a copy of it. So how to force C# to copy?10 replies
✅ Confused about publish options
Can I not create an executable for windows that doesn't need any sort of .NET installation to run it? Even python has an option to create an executable that contains all the dependencies and python itself within it. How do I do that for C#?
6 replies
❔ Part of me feels like I need to learn System.Linq; one day
This is simple collision I wrote in few minutes for my game. I feel like I don't need to use
Math.Abs()
2 times, first to find and then to compare to number. Can I find index of minimum value using Linq
in some simple fancy one liner way?5 replies
✅ List of inherited objects
I know that C# is strongly typed programming language and there are some limitations when it comes to what you can put in lists, but can you create a list of objects where each object is inherited from single class and have same constructor and function?
26 replies
❔ A problem with database in asp dotnet
I have class
Market
that has Owner
as one object. With migration everything worked just fine. In database Market table has value OwnerId
and writing to that table from program works just fine, but when i try to get those values it shows me null
in place of Owner. What do I do?52 replies