degree to radians c#

C#
public double ConvertToDegree(double rad)
    {
        return (180 / Math.PI) * rad;
    }public double ConvertToRadians(double angle)
{
    return (Math.PI / 180) * angle;
}

Source

Also in C#: