no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | development:csharp:lists_and_dictionaries [2021/05/27 13:53] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== C# lists and dictionaries ====== | ||
| + | <code c#> | ||
| + | // List | ||
| + | List< | ||
| + | list.add(" | ||
| + | list.add(" | ||
| + | if (list.Contains(" | ||
| + | list.ForEach(delegate(String val) | ||
| + | { | ||
| + | val; | ||
| + | }); | ||
| + | list.Remove(" | ||
| + | // Dictionary | ||
| + | Dictionary< | ||
| + | dict[" | ||
| + | dict[" | ||
| + | if (dict.ContainsKey(" | ||
| + | foreach (KeyValuePair< | ||
| + | { | ||
| + | entry.Key; | ||
| + | entry.Value; | ||
| + | } | ||
| + | dict.Remove(" | ||
| + | </ | ||