Click or drag to resize

imbTypeQueryExtensionsisCompatibileWith Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Determines whether the MemberInfomi is IsAssignableFrom(Type) the specified targetType

Namespace:  imbSCI.Core.extensions.typeworks
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static bool isCompatibileWith(
	this MemberInfo mi,
	Type targetType
)
Request Example View Source

Parameters

mi
Type: System.ReflectionMemberInfo
The mi.
targetType
Type: SystemType
Type of the target.

Return Value

Type: Boolean
true if [is compatibile with] [the specified target type]; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MemberInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also