谁能帮忙把下面的PHP代码翻译成一个ASP.NET代码?小弟感激不尽
程序代码:
$apikey = '12345657898'; $params = array( 'user_id' => '12345', 'project_id' => '654321', 'hash' => $hash ); $context = stream_context_create(array('http' => array( 'header' => "Authorization: Basic " . base64_encode("$apikey:$apikey") ))); $url = 'https://www.sofortueberweisung.de/payment/paycode/get?'; $url .= http_build_query($params, null, '&'); $paycode = file_get_contents($url, false, $context); if (strpos($paycode, 'Errors') === false) { echo $paycode; }