17 references to TryGetContract
Microsoft.Diagnostics.DataContractReader.Contracts (5)
Contracts\RuntimeTypeSystem_1.cs (1)
2075
if (_target.Contracts.
TryGetContract
(out IReJIT reJit) && reJit.IsEnabled())
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (1)
204
bool supportsVirtualMaps = !_target.Contracts.
TryGetContract
<IStackWalk>(out IStackWalk? stackWalk) ||
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TypeLayout.g.cs (1)
75
if (target.Contracts.
TryGetContract
(out IManagedTypeSource mts))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TypeNameResolver.g.cs (1)
42
if (target.Contracts.
TryGetContract
(out IManagedTypeSource mts))
RuntimeTypeSystemHelpers\MethodValidation.cs (1)
194
TargetPointer methodDesc = _target.Contracts.
TryGetContract
(out IPrecodeStubs precodeStubs)
Microsoft.Diagnostics.DataContractReader.Legacy (12)
ClrDataMethodDefinition.cs (1)
70
if (methodDesc != TargetPointer.Null && _target.Contracts.
TryGetContract
(out ICodeVersions codeVersions))
Dbi\DacDbiImpl.cs (8)
1511
if (_target.Contracts.
TryGetContract
<IComWrappers>(out IComWrappers? comWrappers))
1520
if (!comWrappersSuccess && _target.Contracts.
TryGetContract
<IBuiltInCOM>(out IBuiltInCOM? builtInCOM))
2978
if (_target.Contracts.
TryGetContract
(out ICodeVersions codeVersions))
3049
if (_target.Contracts.
TryGetContract
(out ICodeVersions codeVersions))
3303
IRuntimeMutableTypeSystem? mts = _target.Contracts.
TryGetContract
<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null;
5875
if (_target.Contracts.
TryGetContract
<IReJIT>(out IReJIT rejit))
5926
if (!_target.Contracts.
TryGetContract
<IReJIT>(out IReJIT rejit))
6131
if (_target.Contracts.
TryGetContract
<IReJIT>(out _))
Dbi\Helpers\RefWalk.cs (1)
142
if (!_target.Contracts.
TryGetContract
(out IExternalMemoryHandles externalMemoryHandles))
SOSDacImpl.cs (2)
6486
if (_target.Contracts.
TryGetContract
<IObjectiveCMarshal>(out IObjectiveCMarshal? objcContract))
6527
if (_target.Contracts.
TryGetContract
<IObjectiveCMarshal>(out IObjectiveCMarshal? objcContract))