Skip to content

Commit

Permalink
Remove useless enum extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-petre committed Oct 17, 2024
1 parent 14153b9 commit 5b0cad1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Activities/Shared/UiPath.Shared.Activities/EnumExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,8 @@

namespace UiPath.Shared.Activities
{
internal static class EnumExtensions<T> where T : struct
internal static class EnumExtensions<T> where T : struct, Enum
{
public static bool EnumTryParseNoIntegers(string value, out T result)
{
if (int.TryParse(value, out _))
{
result = default;
return false;
}

return Enum.TryParse<T>(value, out result);
}

/// <summary>
/// Splits a flag value into its composing bits
/// </summary>
Expand Down

0 comments on commit 5b0cad1

Please sign in to comment.