Bug 29358 - Unable to access TypeConverter for DateTimeOffset using TypeDescriptor.GetConverter
Summary: Unable to access TypeConverter for DateTimeOffset using TypeDescriptor.GetCon...
Status: RESOLVED ANSWERED
Alias: None
Product: MonoMac
Classification: Desktop
Component: Bindings ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2015-04-23 17:46 UTC by sornakumar
Modified: 2015-05-27 14:15 UTC (History)
1 user (show)

Tags: TypeConverter; TypeDescriptor
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 ANSWERED

Description sornakumar 2015-04-23 17:46:44 UTC
TypeDescriptor.GetConverter(typeof(DateTimeOffset)).CanConvertFrom(typeof(string));

The above code returns false even though DateTimeOffsetConverter exists in mono. Probably a bug in TypeDescriptor?
Comment 1 Chris Hamons 2015-04-28 19:27:43 UTC
That line

TypeDescriptor.GetConverter(typeof(DateTimeOffset)).CanConvertFrom(typeof(string));

is returning true for me for under

Xamarin.Mac
Version: 2.0.0.262 (Business Edition)

and

Mono 4.0.0 ((detached/d136b79)

found in the beta channel. What version of Mono are you using? Try this in the beta channel and re-open if it still is a problem.
Comment 2 sornakumar 2015-05-27 13:58:29 UTC
I am using the following version - Mono JIT compiler version 4.1.0 (master/af7ab54 Fri Apr 17
10:08:44 PDT 2015)

What is the beta channel? How do I enlist into it?
Comment 3 Chris Hamons 2015-05-27 14:15:15 UTC
If you open Xamarin Studio, and go to the Xamarin Studio -> Check for Updates and change the dropdown to Beta you'll switch to the beta channel.

If the issue still occurs there, please reopen with steps to reproduce.