Share via


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
Ee649885.pubmethod(en-us,PandP.10).gif ReflectionHelper
Create a new ReflectionHelper instance that lets you look at information about the given type.

Methods

  Name Description
Ee649885.pubmethod(en-us,PandP.10).gif Equals (Inherited from Object.)
Ee649885.protmethod(en-us,PandP.10).gif Finalize (Inherited from Object.)
Ee649885.pubmethod(en-us,PandP.10).gif GetClosedParameterType
If this type is an open generic, use the given genericArguments array to determine what the required closed type is and return that.
Ee649885.pubmethod(en-us,PandP.10).gif GetHashCode (Inherited from Object.)
Ee649885.pubmethod(en-us,PandP.10).gif 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).
Ee649885.pubmethod(en-us,PandP.10).gif GetType (Inherited from Object.)
Ee649885.protmethod(en-us,PandP.10).gif MemberwiseClone (Inherited from Object.)
Ee649885.pubmethod(en-us,PandP.10).gifEe649885.static(en-us,PandP.10).gif 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.
Ee649885.pubmethod(en-us,PandP.10).gif ToString (Inherited from Object.)

Properties

  Name Description
Ee649885.pubproperty(en-us,PandP.10).gif IsGenericType
Is this type generic?
Ee649885.pubproperty(en-us,PandP.10).gif IsOpenGeneric
Is this type an open generic (no type parameter specified)
Ee649885.pubproperty(en-us,PandP.10).gif Type
The Type object we're reflecting over.

See Also

ReflectionHelper Class

Microsoft.Practices.Unity.Utility Namespace