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

github.com/mono/Newtonsoft.Json.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Newton-King <james@newtonking.com>2012-03-19 12:17:12 +0400
committerJames Newton-King <james@newtonking.com>2012-03-19 12:17:12 +0400
commit10aee582bc93901aeef160b0bdd82be153f5f188 (patch)
tree7e1bc2721535f10a5e67121645e5f113d2d81970
parente05499bfb28a06a5007f82deda894605c4265d6e (diff)
-Various Metro fixes
-rw-r--r--Build/build.ps12
-rw-r--r--Src/Newtonsoft.Json/Properties/AssemblyInfo.cs3
-rw-r--r--Src/Newtonsoft.Json/SerializationBinder.cs8
-rw-r--r--Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs4
4 files changed, 13 insertions, 4 deletions
diff --git a/Build/build.ps1 b/Build/build.ps1
index a5ef4e8..049231e 100644
--- a/Build/build.ps1
+++ b/Build/build.ps1
@@ -119,7 +119,7 @@ task Package -depends Build {
Copy-Item -Path $docDir\readme.txt -Destination $workingDir\Package\
Copy-Item -Path $docDir\versions.txt -Destination $workingDir\Package\Bin\
- robocopy $sourceDir $workingDir\Package\Source\Src /MIR /NP /XD .svn bin obj TestResults /XF *.suo *.user
+ robocopy $sourceDir $workingDir\Package\Source\Src /MIR /NP /XD .svn bin obj TestResults AppPackage /XF *.suo *.user *.pri
robocopy $buildDir $workingDir\Package\Source\Build /MIR /NP /XD .svn
robocopy $docDir $workingDir\Package\Source\Doc /MIR /NP /XD .svn
robocopy $toolsDir $workingDir\Package\Source\Tools /MIR /NP /XD .svn
diff --git a/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs b/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs
index a399274..ba840de 100644
--- a/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs
+++ b/Src/Newtonsoft.Json/Properties/AssemblyInfo.cs
@@ -38,6 +38,9 @@ using System.Security;
[assembly: AssemblyTitle("Json.NET Silverlight")]
#elif PocketPC
[assembly: AssemblyTitle("Json.NET Compact")]
+#elif NETFX_CORE
+[assembly: AssemblyTitle("Json.NET Metro")]
+[assembly: AllowPartiallyTrustedCallers]
#elif NET20
[assembly: AssemblyTitle("Json.NET .NET 2.0")]
[assembly: AllowPartiallyTrustedCallers]
diff --git a/Src/Newtonsoft.Json/SerializationBinder.cs b/Src/Newtonsoft.Json/SerializationBinder.cs
index 760068c..2f79df4 100644
--- a/Src/Newtonsoft.Json/SerializationBinder.cs
+++ b/Src/Newtonsoft.Json/SerializationBinder.cs
@@ -14,9 +14,15 @@ namespace Newtonsoft.Json
/// </summary>
/// <param name="assemblyName">Specifies the <see cref="Assembly"/> name of the serialized object.</param>
/// <param name="typeName">Specifies the <see cref="Type"/> name of the serialized object</param>
- /// <returns></returns>
+ /// <returns>The type of the object the formatter creates a new instance of.</returns>
public abstract Type BindToType(string assemblyName, string typeName);
+ /// <summary>
+ /// When overridden in a derived class, controls the binding of a serialized object to a type.
+ /// </summary>
+ /// <param name="serializedType">The type of the object the formatter creates a new instance of.</param>
+ /// <param name="assemblyName">Specifies the <see cref="Assembly"/> name of the serialized object.</param>
+ /// <param name="typeName">Specifies the <see cref="Type"/> name of the serialized object.</param>
public virtual void BindToName(Type serializedType, out string assemblyName, out string typeName)
{
assemblyName = null;
diff --git a/Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs b/Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs
index 93acf1b..f3fea9c 100644
--- a/Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs
+++ b/Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs
@@ -18,14 +18,14 @@ namespace Newtonsoft.Json.Utilities
new IDictionaryEnumerator GetEnumerator();
}
- public interface IDictionaryEnumerator : IEnumerator
+ internal interface IDictionaryEnumerator : IEnumerator
{
DictionaryEntry Entry { get; }
object Key { get; }
object Value { get; }
}
- public struct DictionaryEntry
+ internal struct DictionaryEntry
{
private readonly object _key;
private readonly object _value;