   Does anyone know Java and C#?
  Does anyone know what this Java(pseudocode) would be in C#?Socket socket=new Socket("localhost",7777);in=new BufferedReader(new InputStreamReader(socket.getInputStream()));out=new PrintWriter(new OutputStreamWriter(socket.getOutputStream()));String messageLine=in.readLine();while ((messageLine=in.readLine())!=null) {  int i=messageLine.indexOf("?");  if (i>0) {    String modelIDString=messageLine.substring(0,i);    int modelID=Integer.parseInt(modelIDString);    String modelXML=generateModel(modelID);    out.println(modelXML);    out.flush();  }}I''m trying to do a project in C#, but I don''t know any networking.  One this part gets working, I can do the rest of the project, which doesn''t have anything to do with networking.http://sodarace.net/api/index.jspThis is what I''m really trying to do, but I can''t get the networking code working.I''d appreciate any help. 
  It would work for the most part. However I do not think that there are methods getInputStream() or getOutputStream();Nor bufferedReader...Mostlikely are looking for NetworkStream for the writesand StreamReader for reading.You would be best to use try and catch statements to stop errors from failure to get a socket. Also Integer.parseInt would be something like Int32.parse();Place a catch statement around that one tho as it throws if not an integer value in the string. 