Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-209

Add extension methods to improve the readability of the SessionUtils and XmlUtils functions.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • NMS
    • None
    • .NET 3.5, MONO

    Description

      .NET 3.5 and MONO support extension methods. Extension methods, if used carefully, can seamlessly extend the API in a type-safe way. There are several utility functions that are prime candidates for this type of re-factoring. The readability gains in the client code are quite significant. Any extension methods will need to be isolated with

      #ifdef NET_3_5 || MONO

      since this is a new feature for the .NET platform.

      See the following link for more information on extension methods:

      http://msdn.microsoft.com/en-us/library/bb383977.aspx

      Attachments

        Activity

          People

            jgomes Jim Gomes
            jgomes Jim Gomes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3h Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h
                4h