@@ -39,8 +39,7 @@ private AssemblyManager()
3939
4040 internal static void Initialize ( )
4141 {
42- namespaces = new
43- ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > ( ) ;
42+ namespaces = new ConcurrentDictionary < string , ConcurrentDictionary < Assembly , string > > ( ) ;
4443 probed = new Dictionary < string , int > ( 32 ) ;
4544 //generics = new Dictionary<string, Dictionary<string, string>>();
4645 assemblies = new AssemblyList ( 16 ) ;
@@ -206,9 +205,10 @@ public static Assembly LoadAssembly(string name)
206205 {
207206 assembly = Assembly . Load ( name ) ;
208207 }
209- catch ( System . Exception e )
208+ catch ( System . Exception )
210209 {
211- //if (!(e is System.IO.FileNotFoundException)) {
210+ //if (!(e is System.IO.FileNotFoundException))
211+ //{
212212 // throw;
213213 //}
214214 }
@@ -480,13 +480,15 @@ public static Type LookupType(string qname)
480480 }
481481
482482 /// <summary>
483- /// Wrapper around List< Assembly> for thread safe access
483+ /// Wrapper around List< Assembly> for thread safe access
484484 /// </summary>
485- private class AssemblyList : IEnumerable < Assembly > {
485+ private class AssemblyList : IEnumerable < Assembly >
486+ {
486487 private readonly List < Assembly > _list ;
487488 private readonly ReaderWriterLockSlim _lock ;
488489
489- public AssemblyList ( int capacity ) {
490+ public AssemblyList ( int capacity )
491+ {
490492 _list = new List < Assembly > ( capacity ) ;
491493 _lock = new ReaderWriterLockSlim ( ) ;
492494 }
@@ -496,16 +498,19 @@ public int Count
496498 get
497499 {
498500 _lock . EnterReadLock ( ) ;
499- try {
501+ try
502+ {
500503 return _list . Count ;
501504 }
502- finally {
505+ finally
506+ {
503507 _lock . ExitReadLock ( ) ;
504508 }
505509 }
506510 }
507511
508- public void Add ( Assembly assembly ) {
512+ public void Add ( Assembly assembly )
513+ {
509514 _lock . EnterWriteLock ( ) ;
510515 try
511516 {
@@ -519,7 +524,7 @@ public void Add(Assembly assembly) {
519524
520525 public IEnumerator GetEnumerator ( )
521526 {
522- return ( ( IEnumerable < Assembly > ) this ) . GetEnumerator ( ) ;
527+ return ( ( IEnumerable < Assembly > ) this ) . GetEnumerator ( ) ;
523528 }
524529
525530 /// <summary>
@@ -555,9 +560,15 @@ public void Reset()
555560 _listEnumerator . Reset ( ) ;
556561 }
557562
558- public Assembly Current { get { return _listEnumerator . Current ; } }
563+ public Assembly Current
564+ {
565+ get { return _listEnumerator . Current ; }
566+ }
559567
560- object IEnumerator . Current { get { return Current ; } }
568+ object IEnumerator . Current
569+ {
570+ get { return Current ; }
571+ }
561572 }
562573
563574 IEnumerator < Assembly > IEnumerable < Assembly > . GetEnumerator ( )
0 commit comments