20 instantiations of DivideByZeroException
Microsoft.Extensions.AI.Evaluation.NLP (1)
Common\RationalNumber.cs (1)
18
throw new
DivideByZeroException
("Denominator cannot be zero.");
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
242
Return New
DivideByZeroException
(Description)
System.Data.Common (12)
System\Data\SQLTypes\SQLByte.cs (2)
141
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
154
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLDecimal.cs (2)
1685
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
2228
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLDouble.cs (1)
147
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLInt16.cs (2)
148
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
164
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLInt32.cs (2)
150
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
166
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLInt64.cs (2)
200
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
216
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
System\Data\SQLTypes\SQLSingle.cs (1)
148
throw new
DivideByZeroException
(SQLResource.DivideByZeroMessage);
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
39
throw new
DivideByZeroException
();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (2)
1956
throw new
DivideByZeroException
();
2211
throw new
DivideByZeroException
();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
765
return new System.
DivideByZeroException
();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
500
throw new
DivideByZeroException
();
System\RuntimeExceptionHelpers.cs (1)
84
return new
DivideByZeroException
();
18 references to DivideByZeroException
Microsoft.Extensions.AI.Evaluation.NLP.Tests (1)
RationalNumberTests.cs (1)
23
Assert.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)
5567
catch (
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
))]