An always empty ICollection.
Inheritance Hierarchy
log4net.UtilEmptyCollection
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
[SerializableAttribute] public sealed class EmptyCollection : ICollection, IEnumerable
The EmptyCollection type exposes the following members.
Properties
Name | Description | |
---|---|---|
Count |
Gets the number of elements contained in the ICollection.
| |
Instance |
Gets the singleton instance of the empty collection.
| |
IsSynchronized |
Gets a value indicating if access to the ICollection is synchronized (thread-safe).
| |
SyncRoot |
Gets an object that can be used to synchronize access to the ICollection.
|
Methods
Name | Description | |
---|---|---|
CopyTo |
Copies the elements of the ICollection to an
Array, starting at a particular Array index.
| |
Equals | (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that can iterate through a collection.
| |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
ToString | (Inherited from Object.) |
Remarks
A singleton implementation of the ICollection interface that always represents an empty collection.
See Also