9 references to ThrowIfTrue
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Rpc\Contracts\MonoMSBuildDiscovery.cs (3)
71
Contract.
ThrowIfTrue
(PlatformInformation.IsWindows);
95
Contract.
ThrowIfTrue
(PlatformInformation.IsWindows);
132
Contract.
ThrowIfTrue
(PlatformInformation.IsWindows);
Rpc\RpcServer.cs (1)
172
Contract.
ThrowIfTrue
(responseJson.Contains("\r") || responseJson.Contains("\n"));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (5)
52
Contract.
ThrowIfTrue
(_index + values.Length > _values.Length);
59
Contract.
ThrowIfTrue
(_index + values.Count > _values.Length);
66
Contract.
ThrowIfTrue
(_index + values.Count > _values.Length);
73
Contract.
ThrowIfTrue
(_index + values.Count > _values.Length);
107
Contract.
ThrowIfTrue
(_index != _values.Length);