© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
arch_il

✅ How to force C# to copy data?

I am trying to debug code and I have a list of
rooms
rooms
and another list of
backup_rooms
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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ how to make C# file send data to arduino
C#CC# / help
2y ago
C# Acces Databaseq query problem
C#CC# / help
2y ago
getting data from mongodb to c#
C#CC# / help
3y ago
❔ How to connect C# winforms to xampp with System.Data.SqlClient
C#CC# / help
3y ago