We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ede9e2 commit c0a6361Copy full SHA for c0a6361
1 file changed
README.md
@@ -61,6 +61,20 @@ Every extension method of Light.GuardClauses has three optional parameters: **pa
61
* **message** lets you exchange the entire exception message if you are not satisfied with the default message in your current context.
62
* **exception** lets you specify a delegate creating an exception object that is thrown instead of the default exception.
63
64
+```csharp
65
+public class ConsoleWriter
66
+{
67
+ private readonly ConsoleColor _foregroundColor;
68
+
69
+ public ConsoleWriter(ConsoleColor foregroundColor = ConsoleColor.Black)
70
+ {
71
+ foregroundColor.MustBeValidEnumValue(parameterName: nameof(foregroundColor));
72
73
+ _foregroundColor = foregroundColor;
74
+ }
75
+}
76
+```
77
78
```csharp
79
public class Entity
80
{
0 commit comments