Earn income with your C# skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

How to get a dictionary value by key in C#

Use the key name on the indexer of the dictionary, like so:

var dictionary = new Dictionary<string, string>();

dictionary.Add("CompanyId", "471413bf-a831-4e4a-bc3f-16492254d1b5");

string id = dictionary["CompanyId"];

Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0