如何克隆HttpRequestMessage

时间:2017-07-26 21:01:48

标签: c# asp.net .net visual-studio-2017

我们说我们收到HttpRequestMessage

void Process(HttpRequestMessage request)
{
    var newRequest = new HttpRequestMessage;
    newRequest.Content = request.Content; //are the Content properties pointing to the same memory location??

    //do stuff
}

如果我改变request.ContentnewRequest.Content也会受到影响吗?

0 个答案:

没有答案