Core/CafeLib.Core.Dynamic/Extensions.cs
/// <summary>
/// Convert dictionary to an object.
/// </summary>
/// <typeparam name="TObject"></typeparam>
/// <typeparam name="TValue"></typeparam>
/// <param name="dictionary"></param>
/// <returns>object</returns>
Convert dictionary to an object.
Convert dictionary to an object .
public static TObject ToObject<TObject, TValue>(this IDictionary<string, TValue> dictionary) where TObject : class
        {
            var json = JObject.FromObject(dictionary);
            return json.ToObject<TObject>();
        }
public static TObject ToObject < TObject , TValue > ( this IDictionary < string , TValue > dictionary ) where TObject : class { var json = JObject . FromObject ( dictionary ) ; return json . ToObject < TObject > ( ) ; }
Convert dictionary to an object.
Convert dictionary to an object .
None
IDictionary<string, TValue>
this
dictionary
None
typeparam
None
typeparam
None