public static void RegisterType <T>(this ITypeMappingTypeResolverContainer container, params object[] options) { if (container == null) { throw new ArgumentNullException(nameof(container)); } container.RegisterType(typeof(T), options); }
public static void RegisterDictionary(this ITypeMappingTypeResolverContainer container, IDictionary <Type, Type> dictionary, params object[] options) { if (container == null) { throw new ArgumentNullException(nameof(container)); } if (dictionary == null) { throw new ArgumentNullException(nameof(dictionary)); } foreach (var element in dictionary) { container.RegisterType(element.Key, element.Value, options); } }