Whether to enable the use of reflection optimizer

Namespace: NHibernate.Cfg
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static bool UseReflectionOptimizer { get; set; }
Visual Basic
Public Shared Property UseReflectionOptimizer As Boolean
	Get
	Set
Visual C++
public:
static property bool UseReflectionOptimizer {
	bool get ();
	void set (bool value);
}

Remarks

This property is read from the <nhibernate> section of the application configuration file by default. Since it is not always convenient to configure NHibernate through the application configuration file, it is also possible to set the property value manually. This should only be done before a configuration object is created, otherwise the change may not take effect.

See Also