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)
173
Contract.
ThrowIfTrue
(responseJson.Contains("\r") || responseJson.Contains("\n"));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (5)
53
Contract.
ThrowIfTrue
(_index + values.Length > _values.Length);
60
Contract.
ThrowIfTrue
(_index + values.Count > _values.Length);
67
Contract.
ThrowIfTrue
(_index + values.Count > _values.Length);
74
Contract.
ThrowIfTrue
(_index + values.Count > _values.Length);
108
Contract.
ThrowIfTrue
(_index != _values.Length);