Net.Bluewalk.DotNetUtils/Extensions/StringExtensions.cs
/// <summary>
/// Casts the specified JObject to given type.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="value"></param>
/// <param name="resolver"></param>
/// <returns></returns>
Casts the specified JObject to given type.
Casts the specified JObject to given type .
public static T Cast<T>(this JObject value, IContractResolver resolver)
        {
            return value.ToObject<T>(JsonSerializer.Create(new JsonSerializerSettings
            {
                ContractResolver = resolver
            }));
        }
public static T Cast < T > ( this JObject value , IContractResolver resolver ) { return value . ToObject < T > ( JsonSerializer . Create ( new JsonSerializerSettings { ContractResolver = resolver } ) ) ; }
Casts the specified JObject to given type.
Casts the specified JObject to given type .
None
JObject
this
resolver
IContractResolver
None
value
None
typeparam
None