Provides a thread-safe list of TraceListener objects.
The TraceListenerSet class provides the same set of functionality as TraceListenerCollection provides. The reason for creating this class is inpossibility of using TraceListenerCollection due to hidden constructor.
Inheritance: IList, ICollection, IEnumerable
Exemplo n.º 1
0
 /// <summary>
 /// Adds the contents of another
 /// <see cref="BytesRoad.Diag.NSTraceListeners">NSTraceListeners</see>
 /// to the list.
 /// </summary>
 /// <param name="listeners">
 /// Another
 /// <see cref="BytesRoad.Diag.NSTraceListeners">NSTraceListeners</see>
 /// whose contents are added to the list.
 /// </param>
 public void AddRange(NSTraceListeners listeners)
 {
     _listeners.AddRange(listeners);
 }
Exemplo n.º 2
0
		/// <summary>
		/// Adds the contents of another
		/// <see cref="BytesRoad.Diag.NSTraceListeners">NSTraceListeners</see>
		/// to the list.
		/// </summary>
		/// <param name="listeners">
		/// Another 
		/// <see cref="BytesRoad.Diag.NSTraceListeners">NSTraceListeners</see>
		/// whose contents are added to the list.
		/// </param>
		public void AddRange(NSTraceListeners listeners)
		{
			_listeners.AddRange(listeners);
		}