public static object CreateChildAdapter(this IDictionaryAdapter parent, Type type, XmlAdapter adapter, IDictionary dictionary) { if (null == dictionary) dictionary = new Hashtable(); var descriptor = new DictionaryDescriptor(GetSharedBehaviors(parent.Meta)); parent.This.Descriptor.CopyBehaviors(descriptor); descriptor.AddBehavior(adapter); return parent.This.Factory.GetAdapter(type, dictionary, descriptor); }
public static object CreateChildAdapter(this IDictionaryAdapter parent, Type type, XmlAdapter adapter, IDictionary dictionary) { if (null == dictionary) { dictionary = new Hashtable(); } var descriptor = new DictionaryDescriptor(GetSharedBehaviors(parent.Meta)); parent.This.Descriptor.CopyBehaviors(descriptor); descriptor.AddBehavior(adapter); return(parent.This.Factory.GetAdapter(type, dictionary, descriptor)); }