Joutsen v0.5.0+12-g5dd5f7e
Static Public Member Functions | List of all members
Joutsen.Reflection.PropertyInfoExtensions Class Reference

A class containing extension methods for the System.Reflection.PropertyInfo class. More...

Static Public Member Functions

static bool IsIndexerProperty (this PropertyInfo property)
 A shorthand check if an instance of PropertyInfo describes a property that is an indexer. More...
 
static bool IsEnumerable (this PropertyInfo property)
 A shorthand check if an instance of System.Reflection.PropertyInfo describes a property that implements the System.Collections.IEnumerable interface. More...
 

Detailed Description

A class containing extension methods for the System.Reflection.PropertyInfo class.

Since
0.2.0

Member Function Documentation

◆ IsEnumerable()

static bool Joutsen.Reflection.PropertyInfoExtensions.IsEnumerable ( this PropertyInfo  property)
static

A shorthand check if an instance of System.Reflection.PropertyInfo describes a property that implements the System.Collections.IEnumerable interface.

Parameters
propertythe description of the property
Returns
true if the type of the property implements the interface System.Collections.IEnumerable, otherwise false.
Exceptions
System.ArgumentNullExceptionif property is null

◆ IsIndexerProperty()

static bool Joutsen.Reflection.PropertyInfoExtensions.IsIndexerProperty ( this PropertyInfo  property)
static

A shorthand check if an instance of PropertyInfo describes a property that is an indexer.

Parameters
propertythe description of the property
Returns
true if the type of the property is an indexer, otherwise false.
Exceptions
System.ArgumentNullExceptionif property is null