Namespaces

Types

Type ReflectHelper

Namespace NHibernate.Util

Methods

Fields

Public instance methods

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public static methods

Type ClassForName(string name)

Returns a reference to the Type.
Parameters
return Type The Type for the Class.
string name The name of the class or a fully qualified name.

object GetConstantValue(Type type, string fieldName)

Returns the value of the static field of .
Parameters
return object ${WriteSummary(content)}
Type type The Type .
string fieldName The name of the field in the .

ConstructorInfo GetConstructor(Type type, IType[] types)

Parameters
return ConstructorInfo
Type type
IType[] types

ConstructorInfo GetDefaultConstructor(Type type)

Gets the default no arg constructor for the Type .
Parameters
return ConstructorInfo ${WriteSummary(content)}
Type type The Type to find the constructor for.

IGetter GetGetter(Type theClass, string propertyName, string propertyAccessorName)

Finds the IGetter for the property in the Type .
This one takes a propertyAccessor name as we might know the correct strategy by now so we avoid Exceptions which are costly
Parameters
return IGetter The IGetter to get the value of the Property.
Type theClass The Type to find the property in.
string propertyName The name of the Property to find.
string propertyAccessorName The name of the property access strategy.

bool IsAbstractClass(Type type)

Determines if the Type is a non creatable class.
Parameters
return bool ${WriteSummary(content)}
Type type The Type to check.

bool IsFinalClass(Type type)

Parameters
return bool
Type type

bool OverridesEquals(Type clazz)

Determine if the specified Type overrides the implementation of Equals from Object
Parameters
return bool ${WriteSummary(content)}
Type clazz The Type to reflect.

bool OverridesGetHashCode(Type clazz)

Determine if the specified Type overrides the implementation of GetHashCode from Object
Parameters
return bool ${WriteSummary(content)}
Type clazz The Type to reflect.

Type ReflectedPropertyClass(Type theClass, string name, string access)

Get the Type for the named property of a type.
Parameters
return Type The Type for the named property.
Type theClass The Type to find the property in.
string name The name of the property/field to find in the class.
string access The name of the property accessor for the property.

IType ReflectedPropertyType(Type theClass, string name, string access)

Get the NHibernate IType for the named property of the Type .
Parameters
return IType The NHibernate IType for the named property.
Type theClass The Type to find the Property in.
string name The name of the property/field to find in the class.
string access The name of the property accessor for the property.

Type TypeFromAssembly(AssemblyQualifiedTypeName name, bool throwOnError)

Returns a Type from an already loaded Assembly or an Assembly that is loaded with a partial name.
Attempts to get a reference to the type from an already loaded assembly. If the type cannot be found then the assembly is loaded using Load .
Parameters
return Type ${WriteSummary(content)}
AssemblyQualifiedTypeName name An AssemblyQualifiedTypeName .
bool throwOnError ${WriteSummary(content)}

Type TypeFromAssembly(string type, string assembly, bool throwIfError)

Parameters
return Type
string type
string assembly
bool throwIfError

Public fields

BindingFlags AnyVisibilityInstance

return BindingFlags