PostSharp4.3//API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Collection(T) Class/Advisable­Collection(T) Methods/Advisable­Collection(T).​Get­Count Method
AdvisableCollection<T>.GetCount Method
Gets the number of elements in the underlying collection.

Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
protected int GetCount()

Return Value

Type: Int32
The number of elements in the collection.
Remarks

Note Note
This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices<TResult, TAction>(ObjectAccessLevel, TAction) method.

See Also