Bug 13470 - Immediate window doesn't explicit/implicit casts
Summary: Immediate window doesn't explicit/implicit casts
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 4.0.10
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-07-25 09:02 UTC by Dan Abramov
Modified: 2013-08-05 17:46 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Dan Abramov 2013-07-25 09:02:57 UTC
It's frustrating that Immediate window doesn't understand basic things like using `operator` casting.
For example, I can't cast `Uri` to `NSUrl` although I can in code (because there is an explicit casting defined).
Comment 1 Jeffrey Stedfast 2013-08-05 17:45:45 UTC
Seems to work fine in git master (about to be 4.1.9)

var url = new Uri ("http://www.google.com");

Immediate Pad:

> (NSUrl) url
{http://www.google.com/}
	AbsoluteString: "http://www.google.com/"
	AbsoluteUrl: {http://www.google.com/}
	BaseUrl: (null)
	ClassHandle (MonoTouch.Foundation.NSUrl): 0x14bf26c
	ClassHandle (MonoTouch.Foundation.NSObject): 0x41a0bc0
	DebugDescription: "http://www.google.com/"
	Description: "http://www.google.com/"
	Fragment: (null)
	Handle: 0xc15b860
	Host: "www.google.com"
	IsFileUrl: false
	ParameterString: (null)
	Password: (null)
	Path: "/"
	Query: (null)
	RelativePath: "/"
	RelativeString: "http://www.google.com/"
	ResourceSpecifier: "//www.google.com/"
	RetainCount: 5
	Scheme: "http"
	StandardizedUrl: {http://www.google.com/}
	SuperHandle: 0xc4ed3a0
	User: (null)
	Static members: 
	Non-public members: 
>