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