16 references to GetHRForException
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (1)
142&& Marshal.GetHRForException(ie) == ToolInputException.COR_E_ASSEMBLYEXPECTED)
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
228if (retryCount == 0 || Marshal.GetHRForException(e) != HR_ERROR_FILE_EXISTS)
Microsoft.Build.Tasks.Core (2)
Copy.cs (1)
977int code = Marshal.GetHRForException(e);
ManifestUtil\SecurityUtil.cs (1)
745int exceptionHR = Marshal.GetHRForException(ex);
Microsoft.Maui.Resizetizer (1)
SkiaSharpTools.cs (1)
223 var code = Marshal.GetHRForException(ex);
PresentationCore (5)
MS\Internal\Text\TextInterface\FontCollectionLoader.cs (1)
76hr = Marshal.GetHRForException(exception);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (2)
150int hr = Marshal.GetHRForException(exception); 154Marshal.GetHRForException(new Exception());
System\Windows\InterOp\HwndTarget.cs (1)
1462return new IntPtr(Marshal.GetHRForException(e));
System\Windows\Media\EventProxy.cs (1)
93return Marshal.GetHRForException(e);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (1)
301if (Marshal.GetHRForException(e) == ExceptionHelpers.E_CHANGED_STATE)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ErrorWrapper.cs (1)
26ErrorCode = Marshal.GetHRForException(e);
System.Runtime.InteropServices (4)
System\Runtime\InteropServices\Marshalling\ExceptionAsDefaultMarshaller.cs (1)
23_ = Marshal.GetHRForException(e);
System\Runtime\InteropServices\Marshalling\ExceptionAsHResultMarshaller.cs (1)
38return T.CreateTruncating(Marshal.GetHRForException(e));
System\Runtime\InteropServices\Marshalling\ExceptionAsNaNMarshaller.cs (1)
25_ = Marshal.GetHRForException(e);
System\Runtime\InteropServices\Marshalling\ExceptionAsVoidMarshaller.cs (1)
25_ = Marshal.GetHRForException(e);