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"]; } }
c# string words = kv.words; string timeList = kv.startTimeMs; string[] timeMs = timeList.Split(", "); int[] time = Array.ConvertAll(timeMs, int.Parse); foreach (int yes in time) { int x = 0; Console.WriteLine(yes[0]); x++; }
c#using System;using System.Net.Http;using System.Threading.Tasks;public class Keys { public static void Main (string[] args) { public string APIKey = "Key"; public string URL = $"example.com/key={APIKey}"; }}class Call { static async Task Main(string[] args) { using (HttpClient client = new HttpClient()) { HttpResponseMessage response = await client.GetAsync(Keys.URL); string result = await response.Content.ReadAsStringAsync(); Console.WriteLine(result); } }}
URL
Keys
Call