Open sandboxFocus

Method Any

Any(IType)

Determines whether the collection contains any attribute whose type is convertible to the specified type using the default conversion kind.

Declaration
bool Any(IType type)
Parameters
Type Name Description
IType type

The attribute type to check for.

Returns
Type Description
bool

true if the collection contains at least one attribute of the specified type; otherwise, false.

See Also

Any(IType, ConversionKind)

Determines whether the collection contains any attribute whose type is convertible to the specified type using the specified conversionKind.

Declaration
bool Any(IType type, ConversionKind conversionKind)
Parameters
Type Name Description
IType type

The attribute type to check for.

ConversionKind conversionKind

The kind of conversion to use when comparing types.

Returns
Type Description
bool

true if the collection contains at least one attribute of the specified type according to conversionKind; otherwise, false.

See Also

Any(Type)

Determines whether the collection contains any attribute whose type is convertible to the specified reflection type using the default conversion kind.

Declaration
bool Any(Type type)
Parameters
Type Name Description
Type type

The reflection attribute type to check for.

Returns
Type Description
bool

true if the collection contains at least one attribute of the specified type; otherwise, false.

See Also

Any(Type, ConversionKind)

Determines whether the collection contains any attribute whose type is convertible to the specified reflection type using the specified conversionKind.

Declaration
bool Any(Type type, ConversionKind conversionKind)
Parameters
Type Name Description
Type type

The reflection attribute type to check for.

ConversionKind conversionKind

The kind of conversion to use when comparing types.

Returns
Type Description
bool

true if the collection contains at least one attribute of the specified type according to conversionKind; otherwise, false.

See Also