File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
tools/jnimarshalmethod-gen Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -245,19 +245,21 @@ void CreateMarshalMethodAssembly (string path)
245245
246246 PrepareTypeMap ( ad . MainModule ) ;
247247
248- IEnumerable < TypeInfo > types = null ;
248+ Type [ ] types = null ;
249249 try {
250- types = assembly . DefinedTypes ;
250+ types = assembly . GetTypes ( ) ;
251251 } catch ( ReflectionTypeLoadException e ) {
252- types = ( IEnumerable < TypeInfo > ) e . Types ;
252+ types = e . Types ;
253253 foreach ( var le in e . LoaderExceptions )
254254 Warning ( $ "Type Load exception{ Environment . NewLine } { le } ") ;
255255 }
256256
257- foreach ( var type in types ) {
258- if ( type == null )
257+ foreach ( var systemType in types ) {
258+ if ( systemType == null )
259259 continue ;
260260
261+ var type = systemType . GetTypeInfo ( ) ;
262+
261263 if ( matchType ) {
262264 var matched = false ;
263265
You can’t perform that action at this time.
0 commit comments