src/GenFx/Validation/ExternalValidatorAttributeHelper.cs
/// <summary>
/// Validates that the arguments are correctly set.
/// </summary>
/// <param name="targetComponentType"><see cref="Type"/> of the component configuration containing the property to be validated.</param>
/// <exception cref="ArgumentNullException"><paramref name="targetComponentType"/> is null.</exception>
/// <exception cref="ArgumentException"><paramref name="targetComponentType"/> does not implement <see cref="GeneticComponent"/>.</exception>
Validates that the arguments are correctly set.
Validates that the arguments are correctly set .
public static void ValidateArguments(Type targetComponentType)
        {
            if (targetComponentType == null)
            {
                throw new ArgumentNullException(nameof(targetComponentType));
            }
            if (!typeof(GeneticComponent).IsAssignableFrom(targetComponentType))
            {
                throw new ArgumentException(StringUtil.GetFormattedString(
                    Resources.ErrorMsg_ExternalValidator_InvalidTargetType, targetComponentType.FullName, typeof(GeneticComponent).FullName), nameof(targetComponentType));
            }
        }
public static void ValidateArguments ( Type targetComponentType ) { if ( targetComponentType == null ) { throw new ArgumentNullException ( nameof ( targetComponentType ) ) ; } if ( ! typeof ( GeneticComponent ) . IsAssignableFrom ( targetComponentType ) ) { throw new ArgumentException ( StringUtil . GetFormattedString ( Resources . ErrorMsg_ExternalValidator_InvalidTargetType , targetComponentType . FullName , typeof ( GeneticComponent ) . FullName ) , nameof ( targetComponentType ) ) ; } }
Validates that the arguments are correctly set.
Validates that the arguments are correctly set .
None
does not implement .
does not implement .
targetComponentType
Type
of the component configuration containing the property to be validated.
of the component configuration containing the property to be validated .