-Added .NET 2.0 support

-Documentation
This commit is contained in:
JamesNK
2009-08-01 12:06:21 +00:00
parent 5611228772
commit ff5c48660d
30 changed files with 788 additions and 119 deletions
@@ -25,7 +25,7 @@
using System;
using System.Collections.Generic;
#if !SILVERLIGHT && !PocketPC
#if !SILVERLIGHT && !PocketPC && !NET20
using System.Data.Linq;
#endif
#if !SILVERLIGHT
@@ -67,7 +67,7 @@ namespace Newtonsoft.Json.Converters
private byte[] GetByteArray(object value)
{
#if !SILVERLIGHT && !PocketPC
#if !SILVERLIGHT && !PocketPC && !NET20
if (value is Binary)
return ((Binary)value).ToArray();
#endif
@@ -109,11 +109,11 @@ namespace Newtonsoft.Json.Converters
if (t == typeof(byte[]))
return data;
#if !SILVERLIGHT && !PocketPC
#if !SILVERLIGHT && !PocketPC && !NET20
if (typeof(Binary).IsAssignableFrom(t))
return new Binary(data);
#endif
#if !SILVERLIGHT
#if !SILVERLIGHT
if (typeof(SqlBinary).IsAssignableFrom(t))
return new SqlBinary(data);
#endif
@@ -136,7 +136,7 @@ namespace Newtonsoft.Json.Converters
if (t == typeof(byte[]))
return true;
#if !SILVERLIGHT && !PocketPC
#if !SILVERLIGHT && !PocketPC && !NET20
if (typeof(Binary).IsAssignableFrom(t))
return true;
#endif