File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -133,26 +133,26 @@ public System.Type ComponentClass
133
133
get
134
134
{
135
135
// NH Different implementation (we use reflection only when needed)
136
- if ( componentClass == null )
136
+ if ( componentClass != null ) return componentClass ;
137
+ if ( componentClassName == null ) return null ;
138
+
139
+ try
137
140
{
138
- try
139
- {
140
- componentClass = ReflectHelper . ClassForName ( componentClassName ) ;
141
- }
142
- catch ( Exception cnfe )
143
- {
144
- if ( ! IsDynamic ) // TODO remove this if leave the Exception
145
- throw new MappingException ( "component class not found: " + componentClassName , cnfe ) ;
146
- return null ;
147
- }
141
+ componentClass = ReflectHelper . ClassForName ( componentClassName ) ;
142
+ }
143
+ catch ( Exception cnfe )
144
+ {
145
+ if ( ! IsDynamic ) // TODO remove this if leave the Exception
146
+ throw new MappingException ( "component class not found: " + componentClassName , cnfe ) ;
147
+ return null ;
148
148
}
149
149
return componentClass ;
150
150
}
151
151
set // TODO NH: Remove the setter
152
152
{
153
153
componentClass = value ;
154
- if ( componentClass != null )
155
- componentClassName = componentClass . AssemblyQualifiedName ;
154
+ if ( value != null )
155
+ componentClassName = value . AssemblyQualifiedName ;
156
156
}
157
157
}
158
158
You can’t perform that action at this time.
0 commit comments