You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/projects/EnsureThat/Enforcers/EnumArg.cs
+26-4Lines changed: 26 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
usingSystem;
2
+
usingEnsureThat.Internals;
2
3
usingJetBrains.Annotations;
3
4
4
5
namespaceEnsureThat.Enforcers
@@ -7,22 +8,23 @@ public sealed class EnumArg
7
8
{
8
9
/// <summary>
9
10
/// Confirms that the <paramref name="value"/> is defined in the enum <typeparamref name="T"/>.
10
-
/// Note that just like `Enum.IsDefined`, `Flags` based enums may be valid combination of defined values, but if the combined value
11
-
/// itself is not named an error will be raised. Avoid usage with `Flags` enums.
11
+
/// Note that just like <see cref="Enum.IsDefined(Type, object)"/>,
12
+
/// <see cref="FlagsAttribute"/> based enums may be valid combination of defined values, but if the combined value
13
+
/// itself is not named an error will be raised. Avoid usage with <see cref="FlagsAttribute"/> enums.
12
14
/// </summary>
13
15
/// <example>
14
16
/// Flags example:
15
17
///
16
18
/// [Flags]
17
-
/// enum Abc{
19
+
/// enum Abc{
18
20
/// A = 1,
19
21
/// B = 2,
20
22
/// C = 4,
21
23
/// AB = 3
22
24
/// }
23
25
///
24
26
/// Abc.A | Abc.B IsDefined=true (due to Abc.AB)
25
-
/// Abc.A | Abc.C IsDefined=false (A and C are both valid, the composite is valid due to `Flags` attribute, but the composite is not a named enum value
27
+
/// Abc.A | Abc.C IsDefined=false (A and C are both valid, the composite is valid due to <see cref="FlagsAttribute"/> attribute, but the composite is not a named enum value
Copy file name to clipboardExpand all lines: src/projects/EnsureThat/EnsureArg.Enums.cs
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,24 +8,32 @@ public static partial class EnsureArg
8
8
{
9
9
/// <summary>
10
10
/// Confirms that the <paramref name="value"/> is defined in the enum <typeparamref name="T"/>.
11
-
/// Note that just like `Enum.IsDefined`, `Flags` based enums may be valid combination of defined values, but if the combined value
12
-
/// itself is not named an error will be raised. Avoid usage with `Flags` enums.
11
+
/// Note that just like <see cref="Enum.IsDefined(Type, object)"/>,
12
+
/// <see cref="FlagsAttribute"/> based enums may be valid combination of defined values, but if the combined value
13
+
/// itself is not named an error will be raised. Avoid usage with <see cref="FlagsAttribute"/> enums.
13
14
/// </summary>
14
15
/// <example>
15
16
/// Flags example:
16
17
///
17
18
/// [Flags]
18
-
/// enum Abc{
19
+
/// enum Abc{
19
20
/// A = 1,
20
21
/// B = 2,
21
22
/// C = 4,
22
23
/// AB = 3
23
24
/// }
24
25
///
25
26
/// Abc.A | Abc.B IsDefined=true (due to Abc.AB)
26
-
/// Abc.A | Abc.C IsDefined=false (A and C are both valid, the composite is valid due to `Flags` attribute, but the composite is not a named enum value
27
+
/// Abc.A | Abc.C IsDefined=false (A and C are both valid, the composite is valid due to <see cref="FlagsAttribute"/> attribute, but the composite is not a named enum value
Copy file name to clipboardExpand all lines: src/projects/EnsureThat/EnsureThatEnumExtensions.cs
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,32 @@ public static class EnsureThatEnumExtensions
4
4
{
5
5
/// <summary>
6
6
/// Confirms that the <paramref name="param.Value"/> is defined in the enum <typeparamref name="T"/>.
7
-
/// Note that just like `Enum.IsDefined`, `Flags` based enums may be valid combination of defined values, but if the combined value
8
-
/// itself is not named an error will be raised. Avoid usage with `Flags` enums.
7
+
/// Note that just like <see cref="System.Enum.IsDefined(System.Type, object)"/>,
8
+
/// <see cref="System.FlagsAttribute"/> based enums may be valid combination of defined values, but if the combined value
9
+
/// itself is not named an error will be raised. Avoid usage with <see cref="System.FlagsAttribute"/> enums.
9
10
/// </summary>
10
11
/// <example>
11
12
/// Flags example:
12
13
///
13
14
/// [Flags]
14
-
/// enum Abc{
15
+
/// enum Abc{
15
16
/// A = 1,
16
17
/// B = 2,
17
18
/// C = 4,
18
19
/// AB = 3
19
20
/// }
20
21
///
21
22
/// Abc.A | Abc.B IsDefined=true (due to Abc.AB)
22
-
/// Abc.A | Abc.C IsDefined=false (A and C are both valid, the composite is valid due to `Flags` attribute, but the composite is not a named enum value
23
+
/// Abc.A | Abc.C IsDefined=false (A and C are both valid, the composite is valid due to `<see cref="System.FlagsAttribute"/> attribute, but the composite is not a named enum value
0 commit comments