Hi,
I am trying to convert the following code to .Net
NSString *urlAddress = @"http://www.amazon.com";
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlAddress];
//URL Requst Object
NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:url];
[requestObj setValue:@"Foobar/1.0" forHTTPHeaderField:@"User_Agent"];
NSUrl url =new NSUrl(@"http://www.amazon.com");
NSUrlRequest req = new NSUrlRequest(url);
req.SetValueForKey(???,"Foobar/1.0");
I don't know how to convert the following line
[requestObj setValue:@"Foobar/1.0" forHTTPHeaderField:@"User_Agent"]
Is there any tutorial on converting Objective-C code to Mono?
Thanks
Art
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Converting-ObjectiveC-code-to-MonoTouch-tp3807631p3807631.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch