@@ -37,13 +37,14 @@ public static IReadOnlyList<Type> GetTypesFromNamespaceCaching(this Assembly ass
3737 if ( string . IsNullOrWhiteSpace ( @namespace ) )
3838 throw new ArgumentException ( "Namespace cannot be null, empty or contain only white spaces" ) ;
3939
40- // these two dummy mentionsa are to not forget to sync filtration algorithm here and in the classes,
41- // in particular BaseType property, if the property changed then this algorighm should be changed as well
40+ // These two dummy mentions are here to not forget to sync filtration algorithm here and in the classes,
41+ // in particular BaseType property, if the property changed result type then this algorighm should be updated as well
4242 _ = nameof ( Xtensive . IoC . ServiceTypeRegistrationProcessor . BaseType ) ;
4343 _ = nameof ( Xtensive . Orm . Configuration . DomainTypeRegistrationHandler . BaseType ) ;
4444
4545 var assemblyNameInfo = assembly . GetName ( ) ;
46- var isMainTestAssembly = assemblyNameInfo . Name == "Xtensive.Orm.Tests" && ! ThisAssemblyPkt . Except ( assemblyNameInfo . GetPublicKeyToken ( ) ) . Any ( ) ;
46+ var isMainTestAssembly = assemblyNameInfo . Name == "Xtensive.Orm.Tests"
47+ && ! ThisAssemblyPkt . Except ( assemblyNameInfo . GetPublicKeyToken ( ) ) . Any ( ) ;
4748
4849 var assemblyTypes = TypesPerAssembly . GetOrAdd ( assembly , static ( a , isMain ) => {
4950 var allTypes = a . GetTypes ( ) ;
@@ -52,7 +53,6 @@ public static IReadOnlyList<Type> GetTypesFromNamespaceCaching(this Assembly ass
5253 var list = new List < Type > ( allTypes . Length ) ;
5354 var currentIndex = 0 ;
5455 foreach ( var t in allTypes ) {
55- // we ignore compiler generated types because usuallty they are at the end of sorted types' array
5656 if ( t . IsSubclassOf ( objectType ) && t . GetCustomAttribute < CompilerGeneratedAttribute > ( ) == null ) {
5757 list . Add ( t ) ;
5858 if ( isMain ) {
0 commit comments