Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils.PropertyIsIndexer Method

Is the supplied propertyName the default indexer for the supplied type?

[Visual Basic]
Public Shared Sub PropertyIsIndexer( _
   ByVal propertyName As String, _
   ByVal type As Type _
)
[C#]
public static bool PropertyIsIndexer(
   string propertyName,
   Type type
);

Parameters

propertyName
The name of the property on the supplied type to be checked.
type
The Type to be checked.

Return Value

if the supplied propertyName is the default indexer for the supplied type.

Exceptions

Exception Type Condition
NullReferenceException If the supplied type is a null reference (Nothing in Visual Basic).

See Also

ReflectionUtils Class | Spring.Util Namespace