Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin.baulig@xamarin.com>2013-03-16 02:14:44 +0400
committerMartin Baulig <martin.baulig@xamarin.com>2013-03-16 02:14:44 +0400
commitefda0d4c622664b616005e45e549c99d2946d87f (patch)
tree00d1f4f1d46dea2216c80bbdd20a4aa3467361b8 /mcs/class/System.ServiceModel.Web
parent9f438cd066ed09e2f3a1d5569afae5980d7f3e8f (diff)
Revert "Fixes make dist"
This reverts commit 87e95b46ed84d290d1e26806881a9a03e5864633. 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.
Diffstat (limited to 'mcs/class/System.ServiceModel.Web')
-rw-r--r--mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/DataContractJsonSerializerSettings.cs45
1 files changed, 45 insertions, 0 deletions
diff --git a/mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/DataContractJsonSerializerSettings.cs b/mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/DataContractJsonSerializerSettings.cs
new file mode 100644
index 00000000000..7e16d85cf5a
--- /dev/null
+++ b/mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/DataContractJsonSerializerSettings.cs
@@ -0,0 +1,45 @@
+//
+// DataContractJsonSerializerSettings.cs
+//
+// Author:
+// Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+using System;
+using System.Xml;
+using System.Collections.Generic;
+
+namespace System.Runtime.Serialization.Json
+{
+ public class DataContractJsonSerializerSettings
+ {
+ public IDataContractSurrogate DataContractSurrogate { get; set; }
+ public DateTimeFormat DateTimeFormat { get; set; }
+ public EmitTypeInformation EmitTypeInformation { get; set; }
+ public bool IgnoreExtensionDataObject { get; set; }
+ public IEnumerable<Type> KnownTypes { get; set; }
+ public int MaxItemsInObjectGraph { get; set; }
+ public string RootName { get; set; }
+ public bool SerializeReadOnlyTypes { get; set; }
+ public bool UseSimpleDictionaryFormat { get; set; }
+ }
+}
+