Here's the situation. I'm reviewing some SDK code that I didn't write because I've been tasked with drafting the developer's documentation. In one class, in the constructor, event handling is set up like this:
_engine.ReceiverEvents_OnPosition += OnPosition;
_engine.ConnectionEvents_OnDeviceStatus += OnDeviceStatus;
_engine.ConnectionEvents_OnErrorStatus += OnErrorStatus;
_engine.ReceiverEvents_OnConstellation += OnConstellation;
The ordering is Event-Raised first; Method-To-Call second.
In another class, in a method (not the constructor), the event handling is set up like this:
_captureManager.PositionLogged += CaptureManager_PositionLogged;
_captureManager.GeometryCaptureStarted += CaptureManager_GeometryCaptureStarted;
The ordering is Method-To-Call first, Event-Raised second.
My question is this - Is the ordering of the Event-Raised and Method-To-Call when setting up event handling arbitrary (order doesn't matter) or is it significant (different ordering gives you different results)?
Thanks in advance.