CookieMonster (1) [Avatar] Offline
#1
Hello, just started your book and reached the first example (page 33-34). So, i have several suggestions:

1. Code after pasting it to IDE have to be edited - some spaces are disappearing after the paste.
2. There is a tool, called LINQpad - it would be very handy to have all code in LINQpad scripts
3. Listing 2.6 starts with one line of code on one page and continues on the other - page break needed badly
4. Maybe there is a reason for complete working example, i mean i had to add some code to follow along with the result of yours described on page 33:

void Main()
{
	var ticker = new StockTicker();
	var monitor = new StockMonitor(ticker);

	ticker.Tick(new StockTick() { QuoteSymbol = "MSFT", Price = 100 });
	ticker.Tick(new StockTick() { QuoteSymbol = "INTC", Price = 150 });
	ticker.Tick(new StockTick() { QuoteSymbol = "MSFT", Price = 170 });
	ticker.Tick(new StockTick() { QuoteSymbol = "MSFT", Price = 195 });
	
	Console.Read();
}

class StockTicker
{
	public event EventHandler<StockTick> StockTick;//#A 

	public void Tick(StockTick tick)
	{
		StockTick(this, tick);
	}
}

Tamir Dresher (35) [Avatar] Offline
#2
Thanks for the comment
I'll see what can do