/// <summary> /// This is intended to circumvent default behavior which throws an exception for primitive data types when there is /// no content provided for their elements. /// /// For example, say you have a boolean element defined as such: `<Boolean />` or, perhaps its long-form equivalent ` /// <Boolean></Boolean>`. /// /// Either one of these by default will throw a <seealso cref="FormatException"/>. Configuring the container with /// <seealso cref="EnableImplicitlyDefinedDefaultValues"/> will allow the use of empty values within document /// elements such as the above without throwing an exception. /// </summary> /// <param name="this">The container to configure.</param> /// <returns>The configured container.</returns> public static IConfigurationContainer EnableImplicitlyDefinedDefaultValues(this IConfigurationContainer @this) => @this.Alter(ImplicitlyDefinedDefaultValueAlteration.Default);
public static IConfigurationContainer OptimizeConverters(this IConfigurationContainer @this, IAlteration <IConverter> optimizations) => @this.Alter(optimizations);