Yes, I mean that, and I had tried it.
See:
http://stackoverflow.com/questions/951234/forward-declaration-of-nested-types-classes-in-c

If you think we really need to remove this line, I need to move the observer class definition out of SensorProvider.