EmptyCollection ClassApache log4net™ SDK Documentation
An always empty ICollection.
Inheritance Hierarchy

SystemObject
  log4net.UtilEmptyCollection

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

[SerializableAttribute]
public sealed class EmptyCollection : ICollection, 
	IEnumerable

The EmptyCollection type exposes the following members.

Properties

  NameDescription
Public propertyCount
Gets the number of elements contained in the ICollection.
Public propertyStatic memberInstance
Gets the singleton instance of the empty collection.
Public propertyIsSynchronized
Gets a value indicating if access to the ICollection is synchronized (thread-safe).
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Top
Methods

  NameDescription
Public methodCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that can iterate through a collection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

A singleton implementation of the ICollection interface that always represents an empty collection.

See Also

Reference