質問編集履歴

1

コードを追加いたしました

2019/07/30 08:04

投稿

MellMell
MellMell

スコア14

test CHANGED
File without changes
test CHANGED
@@ -36,6 +36,50 @@
36
36
 
37
37
  ("文字列","文字列","文字列","文字列","文字列","文字列","文字列","文字列","文字列","文字列","文字列")
38
38
 
39
+ `
40
+
41
+ 追記
42
+
43
+
44
+
45
+ 現在のコードを追加で書かせていただきます。
46
+
47
+
48
+
49
+ 言語
50
+
51
+ C#
52
+
53
+
54
+
55
+ コード
56
+
57
+
58
+
59
+ var "Valueを追加したいリスト" = new List<string>();
60
+
61
+ foreach (KeyValuePair <string, string> item in ディクショナリー名)
62
+
63
+ {
64
+
65
+ bool result = item.Key.Contains(検索対象となる文字列);
66
+
67
+
68
+
69
+
70
+
71
+ if (result == true) {
72
+
73
+
74
+
75
+ Valueを追加したいリスト.Add(item.Value);
76
+
77
+
78
+
79
+ }}
80
+
81
+
82
+
39
83
 
40
84
 
41
85
  初心者な質問で申し訳ございませんが、よろしくお願いいたします。