Dictionary変数の初期化の記述方法がわかりません

キー、値の型がそれぞれ(string型,list型)であるdictionary変数を定義しました。
変数パネルの「変数の型」には

「System.Collections.Generic.Dictionary(System.String,System.Collections.Generic.List<System.String>」

と示されています。

しかしどう書いても文法構文エラーを示す右側の青い「!」が表示されてうまく通りません。

new dictionay(of string,of list(of string))]

new dictionay(of string,of list))

などを試しました。

初期化のための記述を教えていただけないでしょうか

「new Dictionary(of string, list(of String))」
によって解決しました。

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.