src/GenFx/Validation/RequiredComponentTypeValidator.cs
/// <summary>
/// Returns a value indicating whether the specified component has an equivalent type to the required component type.
/// </summary>
/// <param name="configuredComponent"><see cref="GeneticComponent"/> to check.</param>
/// <returns>true if the specified component has an equivalent type to the required component type; otherwise, false.</returns>
Returns a value indicating whether the specified component has an equivalent type to the required component type.
Returns a value indicating whether the specified component has an equivalent type to the required component type .
protected bool IsEquivalentType(GeneticComponent? configuredComponent)
        {
            if (configuredComponent == null)
            {
                return false;
            }
            return this.RequiredComponentType.IsAssignableFrom(configuredComponent.GetType());
        }
protected bool IsEquivalentType ( GeneticComponent ? configuredComponent ) { if ( configuredComponent == null ) { return false ; } return this . RequiredComponentType . IsAssignableFrom ( configuredComponent . GetType ( ) ) ; }
Returns a value indicating whether the specified component has an equivalent type to the required component type.
Returns a value indicating whether the specified component has an equivalent type to the required component type .
true if the specified component has an equivalent type to the required component type; otherwise, false.
true if the specified component has an equivalent type to the required component type ; otherwise false .
configuredComponent
GeneticComponent?
None