Click or drag to resize

PropertyInvalidException.ValidateImplementsInterface<TInterface> Method (Object, String)

Validate that the given property implements the specified interface.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static void ValidateImplementsInterface<TInterface>(
	Object value,
	string propertyName
)

Parameters

value
Type: System.Object
The property value.
propertyName
Type: System.String
The name of the property.

Type Parameters

TInterface
The type of interface expected.
Exceptions
ExceptionCondition
PropertyInvalidException Thrown if value does not implement TInterface.
See Also