~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core.Serialization/DataContext.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
                {
299
299
                        if (type.IsEnum)
300
300
                                return new EnumDataType (type);
301
 
                        else if (type.IsPrimitive || type == typeof(string))
 
301
                        else if (type.IsPrimitive)
302
302
                                return new PrimitiveDataType (type);
 
303
                        else if (type == typeof(string))
 
304
                                return new StringDataType ();
303
305
                        else if (type == typeof(DateTime))
304
306
                                return new DateTimeDataType ();
305
307
                        else if (type == typeof(TimeSpan))