<PackageReference Include="Castle.Core" Version="3.2.2" />

DictionaryAdapterFactory

Uses Reflection.Emit to expose the properties of a dictionary through a dynamic implementation of a typed interface.

public T GetAdapter<T>(IDictionary dictionary)

public object GetAdapter(Type type, IDictionary dictionary)

public object GetAdapter(Type type, IDictionary dictionary, PropertyDescriptor descriptor)

public T GetAdapter<T, R>(IDictionary<string, R> dictionary)

public object GetAdapter<R>(Type type, IDictionary<string, R> dictionary)

public T GetAdapter<T>(NameValueCollection nameValues)

public object GetAdapter(Type type, NameValueCollection nameValues)

public T GetAdapter<T>(XmlNode xmlNode)

public object GetAdapter(Type type, XmlNode xmlNode)