PostSharp4.3/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Collection(T) Class/Advisable­Collection(T) Methods/Advisable­Collection(T).​Clear Method
AdvisableCollection<T>.Clear Method
Removes all items from the ICollection<T>.

Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public void Clear()

Implements

ICollection<T>.Clear()
IList.Clear()
Exceptions
ExceptionCondition
NotSupportedExceptionThe ICollection<T> is read-only.
See Also