Result/ResultSuccess/Errors/Error.cs
/// <summary>
/// Add error detail to current error.
/// </summary>
/// <param name="error">Error object.</param>
Add error detail to current error.
Add error detail to current error .
public void AddErrorDetail(Error error)
        {
            if (error is null)
            {
                throw new ArgumentNullException(nameof(error));
            }
            Details ??= new List<Error>();
            Details.Add(error);
        }
public void AddErrorDetail ( Error error ) { if ( error is null ) { throw new ArgumentNullException ( nameof ( error ) ) ; } Details ??= new List < Error > ( ) ; Details . Add ( error ) ; }
Add error detail to current error.
Add error detail to current error .
error
Error
None