We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It declares to return IEnumerable<TEnum>, so I except it is never null (https://rules.sonarsource.com/csharp/RSPEC-1168).
IEnumerable<TEnum>
But MyEnum.FromValue(0) returns null.
MyEnum.FromValue(0)
public sealed class MyEnum : SmartFlagEnum<MyEnum> { public static readonly MyEnum X= new MyEnum(1); public static readonly MyEnum Y= new MyEnum(2); private MyEnum (int value, [CallerMemberName] string name = null) : base(name, value) { } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It declares to return
IEnumerable<TEnum>
, so I except it is never null (https://rules.sonarsource.com/csharp/RSPEC-1168).But
MyEnum.FromValue(0)
returns null.The text was updated successfully, but these errors were encountered: