Core/CafeLib.Core.Dynamic/Extensions.cs
/// <summary>
/// Convert expando class to a typed object.
/// </summary>
/// <typeparam name="TObject">typed object</typeparam>
/// <param name="expando">expando class</param>
/// <returns></returns>
Convert expando class to a typed object.
Convert expando class to a typed object .
public static TObject ToObject<TObject>(this Expando expando) where TObject : class
        {
            var json = JObject.FromObject(expando);
            return json.ToObject<TObject>();
        }
public static TObject ToObject < TObject > ( this Expando expando ) where TObject : class { var json = JObject . FromObject ( expando ) ; return json . ToObject < TObject > ( ) ; }
Convert expando class to a typed object.
Convert expando class to a typed object .
None
Expando
this
expando
None
typeparam
None