In the function Demo, the line sum = Aggregate( ... );
I believe this line should read sum = AggDelegate.Aggregate( ... ); as Aggregate is a static method of the call AggDelegate.
Jason