Skip to content

Commit

Permalink
Fixed code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Nov 15, 2023
1 parent 4160c67 commit 50ad82e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ catch (Exception ex)
HResult hresult = HResult.Parse(ex.HResult);
Console.WriteLine(hresult.Hex); // 0x80131600
Console.WriteLine(hresult.IsFailure); // true
Console.WriteLine(hresult.Facility); // FACILITY_URT
Console.WriteLine(hresult.ErrorCode); // COR_E_APPLICATION
Console.WriteLine(hresult.Facility.Name); // FACILITY_URT
Console.WriteLine(hresult.Code.Name); // COR_E_APPLICATION
}
```

0 comments on commit 50ad82e

Please sign in to comment.