DWTD
DWTD
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
The error has been resolved. Thank you to everyone who helped.
21 replies
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
But which file should I put that code in?:bigthonk:
21 replies
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
:pepeCEASE:
21 replies
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
Hmm, it looks like I put the same code in different files.
21 replies
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
There is a file
21 replies
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
Umm
21 replies
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
// C# 샘플 코드 using System; using System.Net; using System.Net.Http; using System.IO; namespace ConsoleApp1 { class Program { static HttpClient client = new HttpClient(); public static HttpClient Client { get => Client1; set => Client1 = value; } public static HttpClient Client1 { get => Client3; set => Client3 = value; } public static HttpClient Client2 { get => Client3; set => Client3 = value; } public static HttpClient Client3 { get => client; set => client = value; } static void Main(string[] args) { string url = "http://apis.data.go.kr/1360000/EqkInfoService/getEqkMsg"; // URL url += "?ServiceKey=" + "[API KEY}"; // Service Key url += "&pageNo=1"; url += "&numOfRows=10"; url += "&dataType=XML"; url += "&fromTmFc=20171101"; url += "&toTmFc=20171129"; var request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET"; string results = string.Empty; HttpWebResponse response; using (response = request.GetResponse() as HttpWebResponse) { StreamReader reader = new StreamReader(response.GetResponseStream()); results = reader.ReadToEnd(); } Console.WriteLine(results); } } }
21 replies
CC#
Created by DWTD on 2/4/2024 in #help
CS 0101 , CS 0111 error[Solved]
Currently CS0017 error is appearing.
21 replies