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