@@ -416,8 +416,7 @@ public bool[] GetBooleanArray(string key, bool[] defaultValue)
416416 ///<inheritdoc/>
417417 public void AddTableListenerEx ( ITableListener listener , NotifyFlags flags )
418418 {
419- List < int > adapters ;
420- if ( ! m_listenerMap . TryGetValue ( listener , out adapters ) )
419+ if ( ! m_listenerMap . TryGetValue ( listener , out List < int > adapters ) )
421420 {
422421 adapters = new List < int > ( ) ;
423422 m_listenerMap . Add ( listener , adapters ) ;
@@ -442,8 +441,7 @@ public void AddTableListenerEx(ITableListener listener, NotifyFlags flags)
442441 ///<inheritdoc/>
443442 public void AddTableListenerEx ( string key , ITableListener listener , NotifyFlags flags )
444443 {
445- List < int > adapters ;
446- if ( ! m_listenerMap . TryGetValue ( listener , out adapters ) )
444+ if ( ! m_listenerMap . TryGetValue ( listener , out List < int > adapters ) )
447445 {
448446 adapters = new List < int > ( ) ;
449447 m_listenerMap . Add ( listener , adapters ) ;
@@ -465,8 +463,7 @@ public void AddTableListenerEx(string key, ITableListener listener, NotifyFlags
465463 ///<inheritdoc/>
466464 public void AddSubTableListener ( ITableListener listener , bool localNotify )
467465 {
468- List < int > adapters ;
469- if ( ! m_listenerMap . TryGetValue ( listener , out adapters ) )
466+ if ( ! m_listenerMap . TryGetValue ( listener , out List < int > adapters ) )
470467 {
471468 adapters = new List < int > ( ) ;
472469 m_listenerMap . Add ( listener , adapters ) ;
@@ -520,8 +517,7 @@ public void AddSubTableListener(ITableListener listener)
520517 ///<inheritdoc/>
521518 public void RemoveTableListener ( ITableListener listener )
522519 {
523- List < int > adapters ;
524- if ( m_listenerMap . TryGetValue ( listener , out adapters ) )
520+ if ( m_listenerMap . TryGetValue ( listener , out List < int > adapters ) )
525521 {
526522 foreach ( int t in adapters )
527523 {
@@ -535,8 +531,7 @@ public void RemoveTableListener(ITableListener listener)
535531 ///<inheritdoc/>
536532 public void AddTableListenerEx ( Action < ITable , string , Value , NotifyFlags > listenerDelegate , NotifyFlags flags )
537533 {
538- List < int > adapters ;
539- if ( ! m_actionListenerMap . TryGetValue ( listenerDelegate , out adapters ) )
534+ if ( ! m_actionListenerMap . TryGetValue ( listenerDelegate , out List < int > adapters ) )
540535 {
541536 adapters = new List < int > ( ) ;
542537 m_actionListenerMap . Add ( listenerDelegate , adapters ) ;
@@ -561,8 +556,7 @@ public void AddTableListenerEx(Action<ITable, string, Value, NotifyFlags> listen
561556 ///<inheritdoc/>
562557 public void AddTableListenerEx ( string key , Action < ITable , string , Value , NotifyFlags > listenerDelegate , NotifyFlags flags )
563558 {
564- List < int > adapters ;
565- if ( ! m_actionListenerMap . TryGetValue ( listenerDelegate , out adapters ) )
559+ if ( ! m_actionListenerMap . TryGetValue ( listenerDelegate , out List < int > adapters ) )
566560 {
567561 adapters = new List < int > ( ) ;
568562 m_actionListenerMap . Add ( listenerDelegate , adapters ) ;
@@ -584,8 +578,7 @@ public void AddTableListenerEx(string key, Action<ITable, string, Value, NotifyF
584578 ///<inheritdoc/>
585579 public void AddSubTableListener ( Action < ITable , string , Value , NotifyFlags > listenerDelegate , bool localNotify )
586580 {
587- List < int > adapters ;
588- if ( ! m_actionListenerMap . TryGetValue ( listenerDelegate , out adapters ) )
581+ if ( ! m_actionListenerMap . TryGetValue ( listenerDelegate , out List < int > adapters ) )
589582 {
590583 adapters = new List < int > ( ) ;
591584 m_actionListenerMap . Add ( listenerDelegate , adapters ) ;
@@ -639,8 +632,7 @@ public void AddSubTableListener(Action<ITable, string, Value, NotifyFlags> liste
639632 ///<inheritdoc/>
640633 public void RemoveTableListener ( Action < ITable , string , Value , NotifyFlags > listenerDelegate )
641634 {
642- List < int > adapters ;
643- if ( m_actionListenerMap . TryGetValue ( listenerDelegate , out adapters ) )
635+ if ( m_actionListenerMap . TryGetValue ( listenerDelegate , out List < int > adapters ) )
644636 {
645637 foreach ( int t in adapters )
646638 {
@@ -678,8 +670,7 @@ public void AddConnectionListener(IRemoteConnectionListener listener, bool immed
678670 ///<inheritdoc/>
679671 public void RemoveConnectionListener ( IRemoteConnectionListener listener )
680672 {
681- int val ;
682- if ( m_connectionListenerMap . TryGetValue ( listener , out val ) )
673+ if ( m_connectionListenerMap . TryGetValue ( listener , out int val ) )
683674 {
684675 m_ntCore . RemoveConnectionListener ( val ) ;
685676 }
@@ -704,8 +695,7 @@ public void AddConnectionListener(Action<IRemote, ConnectionInfo, bool> listener
704695 /// <inheritdoc/>
705696 public void RemoveConnectionListener ( Action < IRemote , ConnectionInfo , bool > listener )
706697 {
707- int val ;
708- if ( m_actionConnectionListenerMap . TryGetValue ( listener , out val ) )
698+ if ( m_actionConnectionListenerMap . TryGetValue ( listener , out int val ) )
709699 {
710700 m_ntCore . RemoveConnectionListener ( val ) ;
711701 }
0 commit comments