Open sandboxFocus

Method CanPlaceInType

CanPlaceInType(INamedType)

Determines whether a method synthesized with PlaceInType(INamedType) in a given type can intercept the site.

Declaration
bool CanPlaceInType(INamedType type)
Parameters
Type Name Description
INamedType type

The type.

Returns
Type Description
bool

true when the type belongs to the current project and is accessible from the site; otherwise false.

Remarks

The method does not check the signature of the synthesized method.

Exceptions
Type Condition
ArgumentNullException

type is null.