这是我在Java中的代码。我想将它转换为c#。你能帮我吗?
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(connect.getOutputStream()));
writer.write("username=0920307&password=85181395&submit=Login");
writer.close();
BufferedReader reader = new BufferedReader(new InputStreamReader(connect.getInputStream()));
答案 0 :(得分:4)
与Java的Buffered Writer等效的C#是StreamWriter。
祝你的项目好运。