6 references to ThrowIfTrue
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Rpc\Contracts\MonoMSBuildDiscovery.cs (4)
73
Contract.
ThrowIfTrue
(PlatformInformation.IsWindows);
97
Contract.
ThrowIfTrue
(PlatformInformation.IsWindows);
134
Contract.
ThrowIfTrue
(PlatformInformation.IsWindows);
167
Contract.
ThrowIfTrue
(PlatformInformation.IsWindows);
Rpc\RpcServer.cs (1)
173
Contract.
ThrowIfTrue
(responseJson.Contains("\r") || responseJson.Contains("\n"));
src\Dependencies\Collections\Extensions\FixedSizeArrayBuilder.cs (1)
64
Contract.
ThrowIfTrue
(condition, lineNumber, filePath);