AngouriMath

Navigation

← Back to list of members

DowncastingEnabled

 Property

Summary

Enables downcasting. Not recommended to turn off, disabling might be only useful for some calculations

Example

using System;
using AngouriMath;
using static AngouriMath.MathS;

Entity expr = (Entity.Number.Real)5.5m;
Console.WriteLine(expr.GetType());

using var _ = Settings.DowncastingEnabled.Set(false);

Entity expr2 = (Entity.Number.Real)5.5m;
Console.WriteLine(expr2.GetType());

Prints
AngouriMath.Entity+Number+Rational
AngouriMath.Entity+Number+Real

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online