LSEG Data Library for .NET

Count

Return the number of items in our collection/watchlist

Syntax

int Count()

Usage

The following example demonstrates how to count the items of a pricing stream cache.

var stream = Pricing.Definition("EUR=").GetStream();

stream.Open();

// Add one item or a list of items
stream.AddItems("MSFT.O");
stream.AddItems(new[] { "EUR=", "GBP=", "CAD=" }); 

var count = stream.Count(); 

stream.Close();