Click or drag to resize

PropertyInvalidExceptionValidateImplementsInterfaceTInterface 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.2.419.0 (24.2.419.0)
Syntax
public static void ValidateImplementsInterface<TInterface>(
	Object value,
	string propertyName
)

Parameters

value
Type: SystemObject
The property value.
propertyName
Type: SystemString
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