From 50ad82ea1afb68b4ddd2ab9682fd65f614e72fc3 Mon Sep 17 00:00:00 2001 From: Thomas Ardal Date: Wed, 15 Nov 2023 18:50:25 +0100 Subject: [PATCH] Fixed code sample --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c37fe1b..e8ac3cd 100644 --- a/README.md +++ b/README.md @@ -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 } ``` \ No newline at end of file