by
84k 18
0
4
126k
0
Top 1% !
Pearl of Wisdom
Tagged
Specified
Popularity: 16350th place
This snippet is Public
Architecturex86_64
LanguageC#
Windows VersionWindows7

Combine: Combine will attempt to minimize the depth of InnerResults and maintain status codes

Combine will attempt to minimize the depth of InnerResults and maintain status codes

<param name="target"></param>
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1374012/Combine--Combine-will-attempt-to-minimiz?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
using System; using System.Collections.Generic; using System.Linq; using System.Text; /// <summary> /// Combine will attempt to minimize the depth of InnerResults and maintain status codes /// </summary> /// <param name="target"></param> public static void Combine(this IOperationResult source, IOperationResult target) { target.Message = source.Message; target.Success = source.Success; target.Exception = source.Exception; target.StatusCode = source.StatusCode ?? target.StatusCode; target.InnerResult = source.InnerResult ?? source; }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus