Whether to enable the use of reflection optimizer

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

Syntax

Visual Basic (Declaration)
Public Shared Property UseReflectionOptimizer As Boolean
C#
public static bool UseReflectionOptimizer { get; set; }
Visual C++
public:
static property bool UseReflectionOptimizer {
	bool get ();
	void set (bool value);
}
JavaScript
NHibernate.Cfg.Environment.get_useReflectionOptimizer = function();
NHibernate.Cfg.Environment.set_useReflectionOptimizer = function(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