Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Convert optional parameters to an overloaded method
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Dec 31, 2023
1 parent ece9611 commit f59467c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FAFB-PowerShell-Tool/MessageBoxOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum OutputType
Generic
}

public static void ShowMessageBox(string message, OutputType type = OutputType.Generic)
public static void ShowMessageBox(string message, OutputType type)
{
switch (type)
{
Expand All @@ -36,4 +36,9 @@ public static void ShowMessageBox(string message, OutputType type = OutputType.G
throw new ArgumentOutOfRangeException(nameof(type), type, null);
}
}

public static void ShowMessageBox(string message)
{
ShowMessageBox(message, OutputType.Generic);
}
}

0 comments on commit f59467c

Please sign in to comment.