Skip to content

AppendErrors must be able to return a generic type #10

@SharePointRadi

Description

@SharePointRadi

The OperationResult class is missing an AppendErrors method that returns a generic type. This existed in 1.x versions, but it is still missing in 2.x and it is causing issues with upgrading to 2.x.

Here is the method.

        /// <summary>
        /// Appends error from <paramref name="otherOperationResult"/> to the current instance.
        /// </summary>
        /// <param name="otherOperationResult">The <see cref="OperationResult"/> to append from.</param>
        /// <returns>The original <see cref="OperationResult"/> with the appended messages from <paramref name="otherOperationResult"/>.</returns>
        public new OperationResult<TResult> AppendErrors(OperationResult otherOperationResult)
        {
            base.AppendErrors(otherOperationResult);
            return this;
        }

Please revert it and add it.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions