Skip to content

AppendErrors must be able to return a generic type #10

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions