Beispiel #1
0
 public static bool Failed(this PI.HRESULT hr) => hr < 0;
Beispiel #2
0
 public static string AsString(this PI.HRESULT hr)
 => Enum.IsDefined(typeof(PI.HRESULT), hr)
         ? $"HRESULT {hr} [0x{(int)hr:X} ({(int)hr:D})]"
         : $"HRESULT [0x{(int)hr:X} ({(int)hr:D})]";
Beispiel #3
0
 public static bool Succeeded(this PI.HRESULT hr) => hr >= 0;