Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1851

Fix struct immutability issues when using options/actions

    XMLWordPrintable

Details

    • 1

    Description

      For overloads which take an Action<T> where T is an options block, T must be a class because structs are immutable and end up creating a coopy instead of using the set values.

      There be another work around other than making all a class, but complexity and performance should be considered to make it worth not using basic classes here. If there is an adequate, alternative solution a subsequent commit can be made.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty