20 instantiations of DivideByZeroException
Microsoft.Extensions.AI.Evaluation.NLP (1)
Common\RationalNumber.cs (1)
18throw new DivideByZeroException("Denominator cannot be zero.");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
242Return New DivideByZeroException(Description)
System.Data.Common (12)
System\Data\SQLTypes\SQLByte.cs (2)
141throw new DivideByZeroException(SQLResource.DivideByZeroMessage); 154throw new DivideByZeroException(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLDecimal.cs (2)
1685throw new DivideByZeroException(SQLResource.DivideByZeroMessage); 2228throw new DivideByZeroException(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLDouble.cs (1)
147throw new DivideByZeroException(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLInt16.cs (2)
148throw new DivideByZeroException(SQLResource.DivideByZeroMessage); 164throw new DivideByZeroException(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLInt32.cs (2)
150throw new DivideByZeroException(SQLResource.DivideByZeroMessage); 166throw new DivideByZeroException(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLInt64.cs (2)
200throw new DivideByZeroException(SQLResource.DivideByZeroMessage); 216throw new DivideByZeroException(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLSingle.cs (1)
148throw new DivideByZeroException(SQLResource.DivideByZeroMessage);
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
39throw new DivideByZeroException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
1956throw new DivideByZeroException(); 2211throw new DivideByZeroException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
765return new System.DivideByZeroException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
500throw new DivideByZeroException();
System\RuntimeExceptionHelpers.cs (1)
84return new DivideByZeroException();
18 references to DivideByZeroException
Microsoft.Extensions.AI.Evaluation.NLP.Tests (1)
RationalNumberTests.cs (1)
23Assert.Throws<DivideByZeroException>(() => new RationalNumber(1, 0));
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
217[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.DivideByZeroException))]
netstandard (1)
netstandard.cs (1)
742[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.DivideByZeroException))]
System.Numerics.Tensors (13)
System\Numerics\Tensors\netcore\TensorPrimitives.Divide.cs (3)
17/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="y"/> is equal to zero.</exception> 43/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and <paramref name="y"/> is equal to zero.</exception> 69/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="y"/> is equal to zero.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.DivRem.cs (3)
20/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="y"/> is equal to zero.</exception> 42/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and <paramref name="y"/> is equal to zero.</exception> 64/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="y"/> is equal to zero.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (4)
17/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="x"/> is equal to zero.</exception> 39/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="x"/> is equal to zero.</exception> 61/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="x"/> is equal to zero.</exception> 83/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="x"/> is equal to zero.</exception>
System\Numerics\Tensors\netcore\TensorPrimitives.Remainder.cs (3)
17/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="y"/> is equal to zero.</exception> 43/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and <paramref name="y"/> is equal to zero.</exception> 69/// <exception cref="DivideByZeroException"><typeparamref name="T"/> is an integer type and an element in <paramref name="y"/> is equal to zero.</exception>
System.Private.Xml (1)
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (1)
5567catch (DivideByZeroException)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
175[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.DivideByZeroException))]