Convert below lines of code to c#
HttpClient client = new HttpClient();
GetMethod get = new GetMethod(fileDataURL);
[login to view URL]("Authorization", accessToken);
[login to view URL]("User-Agent",API_SAMPLE_USER_AGENT);
[login to view URL](get);
// get the input stream of the response and write its content to the
// local file
InputStream in = [login to view URL]();
FileOutputStream out = new FileOutputStream(new File(localDownloadPath));
byte[] b = new byte[1024];
int len = 0;
while ((len = [login to view URL](b)) != -1) {
[login to view URL](b, 0, len);
}
[login to view URL]();
[login to view URL]();