/// <summary> /// Adds new item to <see cref="PropertyAdapterTypes"/> list. /// <param name="typeName">Type described by the newly added <see cref="TypeSpecification"/></param> /// <param name="assemblyName">Assembly containing the described type</param> /// </summary> public void AddPropertyAdapter(string typeName, string assemblyName) { if (PropertyAdapterTypes == null) { PropertyAdapterTypes = new List <TypeSpecification>(); } PropertyAdapterTypes.Add(TypeSpecification.CreateSpecification(typeName, assemblyName)); }
/// <summary> /// Adds new item to <see cref="PropertyAdapterTypes"/> list. /// <param name="adapterType">Type described by the newly added <see cref="TypeSpecification"/></param> /// </summary> public void AddPropertyAdapter(Type adapterType) { if (PropertyAdapterTypes == null) { PropertyAdapterTypes = new List <TypeSpecification>(); } PropertyAdapterTypes.Add(TypeSpecification.CreateSpecification(adapterType.FullName, adapterType.Assembly.GetName().FullName)); }
/// <summary> /// Adds new item to <see cref="PropertyAdapterTypes"/> list. /// <param name="adapter">New property adapter specification</param> /// </summary> public void AddPropertyAdapter(TypeSpecification adapter) { if (PropertyAdapterTypes == null) { PropertyAdapterTypes = new List <TypeSpecification>(); } PropertyAdapterTypes.Add(adapter); }