© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
4 replies
fifty Shucks

C# Dictionary question

Hi, if i have a dictionary in C# defined like so:
Dictionary<string, List<int>> test;
Dictionary<string, List<int>> test;
and I do
List<int> stringValue = test["string"];
List<int> stringValue = test["string"];
is the resulting variable "stringValue" a copy of
test["string"]
test["string"]
or the actual list ???
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ C# Dictionary Json Serialization problems
C#CC# / help
4y ago
Basic C# question
C#CC# / help
5mo ago
C# Exit question
C#CC# / help
3y ago
C# Tasks question
C#CC# / help
3y ago