/// <summary>
 /// Used to inspect a type for an <see cref="XmlRootAttribute"/> and if not found, a <see cref="XmlTypeAttribute"/> to
 /// establish its identity.  If both are found, the <see cref="XmlRootAttribute"/> takes precedence, but if any values
 /// there are empty or null, the <see cref="XmlTypeAttribute"/> values will be used, instead.  Using such an approach,
 /// you can use an URI -- either <see cref="XmlRootAttribute.Namespace"/> or <see cref="XmlTypeAttribute.Namespace"/>
 /// -- to specify the type's namespace and the entity's name by using <see cref="XmlRootAttribute.ElementName"/> or
 /// <see cref="XmlTypeAttribute.TypeName"/>) for the that value.  If no name value is found on either, the type's name
 /// will be used instead.
 /// </summary>
 /// <typeparam name="T">The subject type to inspect.</typeparam>
 /// <param name="this">The configuration container to configure.</param>
 /// <returns>The configured configuration container.</returns>
 /// <seealso href="https://github.com/ExtendedXmlSerializer/home/issues/175" />
 public static IConfigurationContainer InspectingType <T>(this IConfigurationContainer @this)
 => @this.InspectingTypes(Support <T> .Key.Yield());
Exemple #2
0
 public static IConfigurationContainer InspectingType <T>(this IConfigurationContainer @this)
 => @this.InspectingTypes(typeof(T).Yield());