In ASP.NET Core, you first need to get the System.Runtime.Extension package , perhaps through the NuGet package manager in Visual Studio or on the command line.
Details on the package can be found here .
Finally, you need to give:
using System
And then you can use the methods of this class:
using System; namespace Demo.Helpers { public class MathDemo { public int GetAbsoluteValue() { var negativeValue = -123; return Math.Abs(negativeValue); } } }
source share