/// <summary> /// Creates a new <see cref="CoreTypeMappingParameters" /> parameter object with the given /// converter composed with any existing converter and set on the new parameter object. /// </summary> /// <param name="converter"> The converter. </param> /// <returns> The new parameter object. </returns> public CoreTypeMappingParameters WithComposedConverter([CanBeNull] ValueConverter converter) => new CoreTypeMappingParameters( ClrType, converter == null ? Converter : converter.ComposeWith(Converter), Comparer, KeyComparer, StructuralComparer, ValueGeneratorFactory);