Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Util.ExtensionMethods.ReflectionExtensions

Summary

Provides extension methods on types involved in the Reflection API.

Static methods

IEnumerable<FieldInfo>
GetAllFields(this Type type)
Returns all fields contained in the specified type, including private fields inherited from base classes.
IEnumerable<PropertyInfo>
GetAllProperties(this Type type)
Returns all properties contained in the specified type, including private properties inherited from base classes.
object
GetDefaultValue(this Type type)
Returns the equivalent of default(T) for a Type object. For reference or nullable types, this is null, while for value types, it is the default value (e.g. false, 0, etc.).
bool
HasPublicGetter(this PropertyInfo Property)
Determines whether a property has a public getter.
bool
IsDefined<T>(this ParameterInfo parameter)
Indicates whether one or more instance of the specified attribute type is applied to this parameter.
bool
IsDefined<T>(this MemberInfo member, bool inherit = false)
Indicates whether one or more instance of the specified attribute type is applied to this member.
bool
IsStatic(this PropertyInfo Property)
Determines whether a property is static.
bool
TryGetGenericParameters(this Type type, Type typeToFind, out Type[] typeParameters)
Determines whether the current type is, derives from, or implements the specified generic type, and determines that type’s generic type parameters.