ReflectionHelper Members
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Unity Application Block information can be found at the Unity Application Block site. |
The ReflectionHelper type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReflectionHelper |
Create a new ReflectionHelper instance that lets you look at information about the given type.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetClosedParameterType |
If this type is an open generic, use the given genericArguments array to determine what the required closed type is and return that.
|
|
GetHashCode | (Inherited from Object.) | |
GetNamedGenericParameter |
Given a generic argument name, return the corresponding type for this closed type. For example, if the current type is MyType<User>, and the corresponding definition was MyType<TSomething>, calling this method and passing "TSomething" will return typeof(User).
|
|
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
MethodHasOpenGenericParameters |
Test the given MethodBase object, looking at the parameters. Determine if any of the parameters are open generic types that need type attributes filled in.
|
|
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
IsGenericType |
Is this type generic?
|
|
IsOpenGeneric |
Is this type an open generic (no type parameter specified)
|
|
Type |
The Type object we're reflecting over.
|