Net.Bluewalk.DotNetUtils/Extensions/DictionaryExtensions.cs
/// <summary>
/// Convert dictionary to specified object T
/// </summary>
/// <param name="source"></param>
/// <param name="bindingFlags"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
Convert dictionary to specified object T
Convert dictionary to specified object T
public static T ToObject<T>(this IDictionary<string, object> source,
            BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)
            where T : class, new()
        {
            return (T) source.ToObject(typeof(T), bindingFlags);
        }
public static T ToObject < T > ( this IDictionary < string , object > source , BindingFlags bindingFlags = BindingFlags . Instance | BindingFlags . Static | BindingFlags . Public ) where T : class , new ( ) { return ( T ) source . ToObject ( typeof ( T ) , bindingFlags ) ; }
Convert dictionary to specified object T
Convert dictionary to specified object T
None
IDictionary<string, object>
this
bindingFlags
BindingFlags
None
source
None
typeparam
None