Guest User

Untitled

a guest
Nov 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public event EventHandler Updated;
  2.  
  3. protected void UpdatePrice(string tickerSymbol, decimal newPrice, long newVolume)
  4. {
  5. _priceList[tickerSymbol] = newPrice;
  6. _volumeList[tickerSymbol] = newVolume;
  7.  
  8. if(Updated != null)
  9. Updated(this, new MarketFeedEventArgs(tickerSymbol, newPrice, newVolume));
  10. }
Add Comment
Please, Sign In to add comment