You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: snippets/csharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Contains/source.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ public static void Main()
25
25
if(!openWith.Contains("ht"))
26
26
{
27
27
openWith.Add("ht","hypertrm.exe");
28
-
Console.WriteLine($"Value added for key = \"ht\": {openWith["ht"]}");
28
+
Console.WriteLine($"""Value added for key = "ht": {openWith["ht"]}""");
29
29
}
30
30
31
31
// IDictionary.Contains returns false if the wrong data
Copy file name to clipboardExpand all lines: snippets/csharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Item/source.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,12 @@ public static void Main()
22
22
23
23
// The Item property is another name for the indexer, so you
24
24
// can omit its name when accessing elements.
25
-
Console.WriteLine($"For key = \"rtf\", value = {openWith["rtf"]}.");
25
+
Console.WriteLine($"""For key = "rtf", value = {openWith["rtf"]}.""");
26
26
27
27
// The indexer can be used to change the value associated
28
28
// with a key.
29
29
openWith["rtf"]="winword.exe";
30
-
Console.WriteLine($"For key = \"rtf\", value = {openWith["rtf"]}.");
30
+
Console.WriteLine($"""For key = "rtf", value = {openWith["rtf"]}.""");
31
31
32
32
// If a key does not exist, setting the indexer for that key
33
33
// adds a new key/value pair.
@@ -54,6 +54,6 @@ public static void Main()
54
54
// Unlike the default Item property on the Dictionary class
55
55
// itself, IDictionary.Item does not throw an exception
56
56
// if the requested key is not in the dictionary.
57
-
Console.WriteLine($"For key = \"tif\", value = {openWith["tif"]}.");
57
+
Console.WriteLine($"""For key = "tif", value = {openWith["tif"]}.""");
Copy file name to clipboardExpand all lines: snippets/csharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Remove/source.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,12 @@ public static void Main()
22
22
23
23
// Use the Remove method to remove a key/value pair. No
24
24
// exception is thrown if the wrong data type is supplied.
Copy file name to clipboardExpand all lines: snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Contains/fs.fsproj
Copy file name to clipboardExpand all lines: snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.GetEnumerator/fs.fsproj
Copy file name to clipboardExpand all lines: snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Item/fs.fsproj
Copy file name to clipboardExpand all lines: snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Keys/fs.fsproj
Copy file name to clipboardExpand all lines: snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Remove/fs.fsproj
Copy file name to clipboardExpand all lines: snippets/fsharp/System.Collections.Generic/DictionaryTKey,TValue/System.Collections.IDictionary.Values/fs.fsproj
0 commit comments