コード例 #1
0
 /// <summary>
 /// Registers array of listeners.
 /// </summary>
 /// <param name="listeners"></param>
 public void SetListeners(IRepeatListener[] listeners)
 {
     _listeners = listeners.ToArray();
 }
コード例 #2
0
 /// <summary>
 /// Registers given listener.
 /// </summary>
 /// <param name="listener"></param>
 public void RegisterListener(IRepeatListener listener)
 {
     List<IRepeatListener> list = new List<IRepeatListener>(_listeners) { listener };
     _listeners = list.ToArray();
 }