bce96769-b570-4e63-84fa-b51d7ff9ad8e
prompter
I have this interface for a C# class.

```
public interface IPriorityQueue<TItem, TPriority> : IEnumerable<TItem>
{
	void Enqueue(TItem node, TPriority priority);
	TItem Dequeue();
	void Clear();
	bool Contains(TItem node);
	void Remove(TItem node);
	void UpdatePriority(TItem node, TPriority priority);
	TItem First { get; }
	int Count { get; }
}
```

Show me how to get the length of the priority queue?
3aeb129f-6bd5-44e5-8646-d857f4e3cd16
bce96769-b570-4e63-84fa-b51d7ff9ad8e
assistant
You can get the length of the priority queue by accessing the Count property. For example:

```
int length = queue.Count;
```

Where queue is an instance of the priority queue. This will return the number of items currently in the queue.
1b2a9a32-3b53-4a5d-9c47-afd733077b15
3aeb129f-6bd5-44e5-8646-d857f4e3cd16
prompter
Hey thanks!
823f850e-5ef8-48f5-ac45-b8bf879d2e92
1b2a9a32-3b53-4a5d-9c47-afd733077b15
assistant
Glad I could help. Is there anything else I can assist you with?