PostSharp SDK6.7//Post­Sharp.​Sdk.​Code­Model.​Collections Namespace/Element­Collection(T) Class/Element­Collection(T) Methods/Element­Collection(T).​Clear Method

ElementCollection<T>.Clear Method

Removes all items from the ICollection<T>.

Namespace:  PostSharp.Sdk.CodeModel.Collections
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
public void Clear()

Implements

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