A value of type 'int' cannot be used
<p>I'm only learning C# and can't figure out what is wrong with this code.</p>

<blockquote>
  <p>Error CS1750 A value of type 'int' cannot be used as a default parameter because there are no standard conversions to type 'MidpointRounding'</p>
</blockquote>

<p>Code:</p>

<pre><code>public static double MyRound(double value, int point, MidpointRounding midpointRounding = 1)
{
    if (!Enum.IsDefined(typeof (MidpointRounding), midpointRounding))
        throw new ArgumentOutOfRangeException(nameof(midpointRounding));

    decimal num = (decimal)((double)value);

    try
    {
        num = Math.Round(num, point, midpointRounding);
    }
    catch (Exception exception1)
    {
        Exception exception = exception1;
        MessageBox.Show(exception.Message, "Error : MyRound", MessageBoxButton.OK, MessageBoxImage.Hand);
    }

    return (double)((double)num);
}
</code></pre>