ctrlX Data Layer .NET API  4.3.0
Loading...
Searching...
No Matches
ResultExtensions.cs
1namespace Datalayer
2{
6 public static class ResultExtensions
7 {
13 public static bool IsGood(this DLR_RESULT result)
14 {
15 return result == DLR_RESULT.DL_OK || result == DLR_RESULT.DL_OK_NO_CONTENT;
16 }
17
23 public static bool IsBad(this DLR_RESULT result)
24 {
25 return !IsGood(result);
26 }
27 }
28}
Provides extension methods for DLR_RESULT.
static bool IsBad(this DLR_RESULT result)
Gets a value that indicates whether the result is bad.
static bool IsGood(this DLR_RESULT result)
Gets a value that indicates whether the result is good.
DLR_RESULT
The result.
Definition: Enums.cs:153