How to extend base class functionality on system level? RRS feed

  • Question

  • I'm looking for a way to extend base classes on a system level. At the moment I'm particulary interested in extending the MessageQueue class of the System.Messaging namespace with custom logging. I have many programs using this class and it's send and receive functionality, but we're experiencing problems in managing the environment. I want to build in some logging on the system level rather than having to change all of the applications.

    Is this possible?


    Wednesday, March 5, 2008 8:18 PM


  • --Is this possible?
    No, the built-in classes in .net framework does not support any kind of extensibility.
    Friday, March 7, 2008 6:21 AM