C#C
C#12mo ago
Kushiwushi

Cannot implicitly convert int to string

C#
foreach (var kv in json["lines"]) // there might be a faster way to do this? looks like this algo is On^ NO ITS NOT
          {
            Dictionary<string, int> lyricMap = new Dictionary<string, int>();
            string words = kv.words;
            int timeList = kv.startTimeMs;
            lyricMap.Add("words", timeList);
            {
              string wordMap = lyricMap["words"];
            }
          }

I'm trying to assign a variable to the "words" in the hashmap but for some reason apparently its an integer?
Was this page helpful?