Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils Members

ReflectionUtils overview

Public Static (Shared) Fields

AllMembersCaseInsensitiveFlags Convenience BindingFlags value that will match all private and public, static and instance members on a class in a case inSenSItivE fashion.

Public Static (Shared) Methods

CreateCustomAttributeOverloaded. Creates a CustomAttributeBuilder.
GetConstructorByArgumentValues From a given list of constructors, selects the constructor having an exact match on the given argValues' types.
GetDefaultValue Returns the default value for the specified Type
GetDefaultValues Returns an array consisting of the default values for the supplied types.
GetExplicitBaseException Returns the explicit Exception that is the root cause of an exception.
GetGenericParameterNamesOverloaded. Returns an array of strings that represent the names of the generic type parameter.
GetInterfaces Gets all of the interfaces implemented by the specified Type.
GetMatchingMethods Tries to find matching methods in the specified Type for each method in the supplied methods list.
GetMethod Returns method for the specified Type, method name and argument Types.
GetMethodByArgumentValues From a given list of methods, selects the method having an exact match on the given argValues' types.
GetParameterTypesOverloaded. Returns an array of parameter Types for the specified method or constructor.
GetSignature Returns signature for the specified Type, method name and argument Types.
GetTypes Returns an array containing the Types of the objects in the supplied array.
HasAtLeastOneMethodWithName Does the given Type and/or it's superclasses have at least one or more methods with the given name (with any argument types)?
IsNullableType Checks, if the specified type is a nullable
IsTypeVisibleOverloaded. Is the supplied type can be accessed outside the assembly ?
MapInterfaceMethodToImplementationIfNecessary Resolves a given methodInfo to the MethodInfo representing the actual implementation.
MemberwiseCopy Copies all fields from one object to another.
MethodCountForName Within type, counts the number of overloads for the method with the given (case-insensitive!) name
MethodIsOnOneOfTheseInterfaces Is the supplied method declared on one of these interfaces?
PackageParamArray Packages arguments into argument list containing parameter array as a last argument.
ParameterTypesMatch Checks that the parameter Types of the supplied candidate match the parameter Types of the supplied parameterTypes.
PropertyIsIndexer Is the supplied propertyName the default indexer for the supplied type?
ToInterfaceArray Convenience method to convert an interface Type to a Type array that contains all the interfaces inherited and the specified interface.
TypeOfOrType Returns the Type of the supplied source.
UnwrapTargetInvocationException Unwraps the supplied TargetInvocationException and returns the inner exception preserving the stack trace.

Public Instance Constructors

ReflectionUtils Constructor Initializes a new instance of the ReflectionUtils class.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

ReflectionUtils Class | Spring.Util Namespace