This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json.Linq; | |
using Newtonsoft.Json.Serialization; | |
namespace MyNamespace; | |
public static class JsonValidator | |
{ | |
public static bool IsJsonValidType(this string json, Type modelType, out string? message) | |
{ | |
try |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use in VS11 and .NET 4.5 or in VS10 with the Async CTP installed | |
// | |
namespace DataServiceAsyncExtensions | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Data.Services.Client; | |
using System.Threading.Tasks; |