Alexis Christoforides
e92af12248
Fix oops in DataContractJsonSerializer fix
2014-10-08 22:04:34 -07:00
Alexis Christoforides
71e152accc
[bcl] Implement KnownTypes for DataContractJsonSerializer. Fixes #23058 and polymorphism support.
...
Also discarded old __type hint behavior in JsonSerializationReader that potentially allowed any loaded type to be instantiated.
2014-10-07 16:24:41 -07:00
Alexis Christoforides
fbea921536
[tests] Add tests for Bug #23058 and polymorphism/known types in DataContractJsonSerializer.
2014-10-07 16:24:41 -07:00
Marek Safar
410af9c0cc
Merge pull request #1309 from esdrubal/json
...
Improved Json deserialization of floating-point numbers.
2014-09-25 07:42:36 -09:00
Marcos Henrich
92a4fd26ac
Improved Json deserialization of floating-point numbers.
...
When DataContractJsonSerializer was created from type object, deserialization of floating.point numbers was not possible.
Fixes 21583.
2014-09-25 15:30:46 +01:00
Marcos Henrich
ee71f0a1e6
Test Json deserialization of a floating-point number as object.
...
Covers 21583.
2014-09-25 15:15:38 +01:00
Marcos Henrich
d7c598b74c
Rss20ItemFormatter.ReadFrom now sets Id when guid is PermaLink.
...
Fixes 23262.
2014-09-25 13:38:59 +01:00
Marcos Henrich
5ddcc07c67
Test Rss20ItemFormatter.ReadFrom Guid. Covers 23262.
2014-09-25 13:36:40 +01:00
Alexander Köplinger
0450000dc4
[Cleanup] Removed a bunch of superfluous .csproj and .sln files
...
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Steffen Kieß
b005523cb1
Fix several issues in System.Json
...
- Fix detection of extra characters in JSON input
- Fix detection of invalid negative numeric literals
- Disallow leading zeros
- Use "round-trip" format for floating point numbers
- Serialize NaN and Infinity as strings
- Use NumberFormatInfo.InvariantInfo for Convert.To*()
- Use standard number parsing methods in ReadNumericLiteral()
- Add test cases
2014-07-07 19:22:29 +02:00
Alexander Köplinger
f396d37c54
[System.ServiceModel] Changed test port from 8080 to 30158
...
Port 8080 is widely used and resulted in address conflicts on monojenkins, so we use a different port instead.
Commit licensed under MIT/X11.
2014-06-17 23:00:42 +02:00
Sebastien Pouliot
13ff02dc31
[System.ServiceModel.Web] Fix issue with types explicitly implementing IDictionary or IDictionary<,>
...
Issue: The previous code, with new tests [1], failed when the linker was
enabled.
That was caused because the code looks for the Keys and Item properties
getter using reflection. The linker handled that imperfectly (it left
some holes), in part because:
* System.Collections.Generic.IDictionary`2 does not implement
System.Collections.IDictionary; and
* It preserved the explicit methods - not the implicit one that were
used the the reflection-based code;
That later fact is also a bug (without the linker involvment) and solved
by this commit. A unit test was added to show the issue (NRE).
The patch also avoid the use of reflection for IDictionary since we can
simply typecast to get the same result (without the additional cost).
2014-05-26 17:27:26 -04:00
Miguel de Icaza
60fa2525fb
[build] the csproj files can now do a full class libraries build
2014-05-25 00:47:09 -04:00
Miguel de Icaza
3599b97b57
[build] Fresh new csproj files based on the updated build system.
2014-05-23 17:15:53 -04:00
Miguel de Icaza
524f732a6d
Merge pull request #993 from ancailliau/fix-datacontract-json-serialization
...
[Fix] DataContractJsonSerializer fails serializing/deserializing collections
2014-05-15 17:34:53 -04:00
Miguel de Icaza
d79280674b
Refreshed the CSProj files to use the new output build directory
2014-04-18 18:15:35 -04:00
Antoine Cailliau
b2b269b1e8
[Fix] DataContractJsonSerializer fails serializing/deserializing collections
2014-04-16 15:10:17 +02:00
Sebastien Pouliot
13b942c073
[System.ServiceModel.Web] Fix JsonQueryStringConverter.ConvertValueToString to work when running on any culture [ #18437 ]
2014-03-17 21:46:33 -04:00
Sebastien Pouliot
56d406876f
[System.ServiceModel.Web] Fix regression when converting strings using some (like German) cultures [ #18131 ] and add unit test
2014-03-04 09:00:36 -05:00
Atsushi Eno
21cb4135ea
fix bug #16744 - null values on nullable value types were not handled in deserializer.
2014-02-06 17:11:30 +09:00
Aaron Bockover
a66f333246
profiles: define xammac (Xamarin.Mac) profile
...
Based on the Mobile profile and modeled after
the MonoDroid profile.
2014-01-16 14:16:59 -05:00
Sebastien Pouliot
24a220f373
The mobile profile can support IBindingRuntimePreferences on WebHttpBinding. Fix one S.SM.W unit test failure for XI
2014-01-14 10:12:11 -05:00
Sebastien Pouliot
b7c10a7c1d
There's no need for those special NET_2_1 cases (not using NameValueCollection like MS) anymore and it fixes 7 S.SM.W unit tests failures for XI (e.g. case sensitiveness)
2014-01-14 10:11:21 -05:00
Sebastien Pouliot
439b2917d9
There's no need for those special NET_2_1 cases (excluding System.Char) anymore and it fixes 6 S.SM.W unit tests failures for XI.
2014-01-14 10:10:35 -05:00
Sebastien Pouliot
f83814bfbb
[test] Disable a test for XI (only) as it does not support dynamic proxy code generation
2014-01-14 10:09:46 -05:00
Atsushi Eno
bf909bcbd0
fix bug #11335 .
2014-01-10 19:04:58 +09:00
Jonathan Pryor
eda41be355
Support deserializing relative Uris. Fixes #15169 .
...
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15169
2013-10-03 11:06:21 -04:00
Marek Safar
8bd66dbbeb
Add System.ServiceModel.Activation assembly. Fixes #14544
2013-09-10 10:14:50 +02:00
Atsushi Eno
2d6335f6a7
revert default serialization: ignore non-public members. Also need to exclude backing field in non-default serialization.
2013-08-21 15:44:27 +09:00
Atsushi Eno
8a10b06610
Fix bug #13485 : retrieve private fields and properties in serialization.
2013-08-05 15:36:24 +09:00
Miguel de Icaza
b6d1b4492f
Class libraries: introduce mobile_static profile, for MonoTouch-like static builds, but not limited to iOS (WinStore, Kumpera did the work).
2013-07-30 16:51:38 -04:00
Sebastien Pouliot
7f8fa9a8a5
Allow running System.ServiceModel.Web unit tests on the MOBILE profiles (using the same .sources file)
2013-07-24 08:58:44 -04:00
Linquize
ee48fc81a9
Atom10FeedFormatter should generate subtitle tag for Description property
2013-07-23 08:12:35 +08:00
Marek Safar
b888cf5f04
Update csproj files
2013-07-02 13:45:15 +02:00
Martin Baulig
bf6d00c9b9
[System.ServiceModel.Web]: Fix 'make dist'.
2013-03-22 00:14:52 +01:00
Martin Baulig
efda0d4c62
Revert "Fixes make dist"
...
This reverts commit 87e95b46ed .
This puts DataContractJsonSerializerSettings.cs back into
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json.
Let's please not have a single file from this namespace in another
directory, either move the entire System.Runtime.Serialization.Json
stuff into System.Runtime.Serialization or leave it here.
2013-03-15 18:14:44 -04:00
Marek Safar
87e95b46ed
Fixes make dist
2013-03-14 17:42:45 +01:00
Martin Baulig
8ea5b572f9
Add type-forwarders for existing assemblies.
2013-03-13 18:07:44 -04:00
Martin Baulig
54f7c82d2b
DataContractSerializer changes for .NET 4.5.
...
* Move System.Runtime.Serialization.Json from System.ServiceModel.Web.dll
into System.Runtime.Serialization.dll on the mobile profile.
* Add DataContractJsonSerializerSettings and DataContractSerializerSettings..
2013-03-12 21:15:56 -04:00
Marek Safar
cf650fb3fb
Update 4.5 bcl solution files
2013-02-21 17:25:06 +01:00
Marek Safar
8063eb0963
Remove broken profile files
2013-02-12 10:19:10 +01:00
Rodrigo Kumpera
f378e23a3f
Since NET_2_1 implies NET_4_* now, take this into account and simplify our ifdefs.
2013-02-11 18:41:51 -05:00
Rodrigo Kumpera
de71901cf8
Kill the MOONLIGHT define in System.ServiceModel.Web.
2013-02-11 13:01:10 -05:00
Marek Safar
78318771d5
Update csproj files
2013-02-07 16:34:23 +01:00
Marek Safar
e3484720bb
Add MOBILE defines to 4.0 code
2012-12-04 18:47:02 +01:00
Antonius Riha
c63b7eba2d
Add a test for UriTemplate.Match
2012-11-16 18:19:40 +01:00
Martin Baulig
2ff2fe25fa
Support [OnSerializing] in System.Runtime.Serialization.Json.
...
This fixes a problem that has been reported on stackoverflow:
http://stackoverflow.com/questions/13362906/onserializing-method-not-called-in-mono-3-0-1
2012-11-13 23:04:26 +01:00
Martin Baulig
a0a7c13e5f
Disable failing tests on the Mac.
...
* System.Drawing (filed #7940 about this):
GraphicsTest.DrawFillRectangle_Width_2 and
GraphicsTest.FillDrawRectangle_Width_2
* Mono.Posix (filed #7942 ):
UnixUserTest.NonReentrantSyscalls
* WCF (filed #7943 ):
CallbackBehaviorAttributeTest.CallbackExample1
CallbackBehaviorAttributeTest.CallbackExample2
UriTemplateTest.EscapedUriCandidate
UriTemplateTest.SimpleWebGet
AnnouncementClientTest.AnnonceOnlineOfflineAddressSchemeMismatch
2012-10-23 13:02:01 +02:00
Enrico Sada
3331041eea
add QueryStringConverter String <-> Enum
...
fix bug https://bugzilla.xamarin.com/show_bug.cgi?id=5230
2012-08-10 01:42:36 +02:00
Marek Safar
2d2796f07b
Fix System.Core reference in VS projects
2012-06-26 13:26:56 +01:00