[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed and optimized split methods #11

Merged
Prev Previous commit
Next Next commit
removed unnecessary cast
  • Loading branch information
Guiorgy committed Feb 24, 2024
commit a46a4cc7e89bc317aaf96c9d510fb239f828ba1a
4 changes: 2 additions & 2 deletions src/CountExceedingBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static CountExceedingBehaviour ThrowIfInvalid(this CountExceedingBehaviou
#if NET5_0_OR_GREATER
string[] names = Enum.GetNames<CountExceedingBehaviour>();
#else
string[] names = (string[]) Enum.GetNames(typeof(CountExceedingBehaviour));
string[] names = Enum.GetNames(typeof(CountExceedingBehaviour));
#endif
CountExceedingBehaviourInvalidFormat = $"{nameof(CountExceedingBehaviour)} doesn't define an option with the value '{{0}}'. Valid values are {string.Join(", ", names)}.";
}
Expand Down Expand Up @@ -75,4 +75,4 @@ public static bool IsDropRemainingElements(this CountExceedingBehaviour countExc
return countExceedingBehaviour == CountExceedingBehaviour.DropRemainingElements;
}
}
}
}