FAILED function Null safety

bool FAILED(
  1. int result
)

Provides a generic test for failure on any status value.

Implementation

//
// #define FAILED(hr) (((HRESULT)(hr)) < 0)
bool FAILED(int result) => result < 0;