I have a shared Queue that I use to dump various messages contained in different Classes, so I have its type as Object.
The prob is, the messages are dequeued and processed but since the message type vary, Intellisense doesn’t show the classes properties or methods.
How does one find get Intellisense to work to?
You will need to provide a common base class or interface that these various message classes share. So instead of a queue of Objects, you would instead have a queue of
MessageBaseorIMessage. The methods and properties you wish to access would need to be defined within the base/interface. Intellisense would then show those properties and methods (but not the additional properties/methods you define within each class).