I obtain a HTTPCookie, but need a Net.Cookie. Are they just something you can recast, or how would i go about it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually you have two questions:
Part 1)
This question is really interesting ,I’m still thinking why there are two classes which looks pretty same ,My initial thought was
System.Web.HttpCookie inherits System.Net.Cookiebut this isn’t true both directly inherit from Object so they are distinct classes ,but the properties matches a lot ,so this gives a hope for the solution of part 2.Part 2)
I think its possible to convert one into another theoretically since both are just objects if you populate them the right way it will work , here a little analysis when I compared the two classes.
Click to open in new tab to enlarge

Update:
The System.Web is made to be used in server-based apps and System.Net can be used for client based apps.
Some Thoughts:
Portnumber.Good luck ,let me know how you came up with the final solution ,post the code or link.
Some Links
this post has some related code