To determine whether a property is indexed, use the GetIndexParameters method. If the resulting array has 0 (zero) elements, the property is not indexed.
This is a convenience method that provides an implementation for the abstract GetValue method with a BindingFlags parameter of Default, the Binder set to nullNothingnullptra null reference (Nothing in Visual Basic), and the CultureInfo set to nullNothingnullptra null reference (Nothing in Visual Basic).
Because static properties belong to the type, not to individual objects, get static properties by passing nullNothingnullptra null reference (Nothing in Visual Basic) as the obj argument. For example, use the following code to get the static CurrentCulture property of CultureInfo:
PropertyInfo CurCultProp =
(typeof(CultureInfo)).GetProperty("CurrentCulture");
Console.WriteLine("CurrCult: " +
CurCultProp.GetValue(null,null));
To use the GetValue method, first get the class Type. From the Type, get the PropertyInfo. From the PropertyInfo, use the GetValue method.