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
Curent Behaviour: For the class
[InterfaceGenerator.GenerateAutoInterface(VisibilityModifier = "public")] public class AClass : IAClass { [return: NotNullIfNotNull(nameof(content))] public byte[]? TheMethod(byte[]? content) { if (content == null) return content; return content; } }
[InterfaceGenerator.GenerateAutoInterface(VisibilityModifier = "public")] public class AClass : IAClass {
[return: NotNullIfNotNull(nameof(content))] public byte[]? TheMethod(byte[]? content) { if (content == null) return content; return content; } }
this interface is generated:
public partial interface IAClass { byte[]? TheMethod(byte[]? content); }
Excpected Interface:
public partial interface IAClass { [return: NotNullIfNotNull(nameof(content))] byte[]? TheMethod(byte[]? content); }
Also other paremeter Attributes should be considered. Eg. MaybeNullWhen() or EnumeratorCancellation.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Curent Behaviour:
For the class
this interface is generated:
Excpected Interface:
Also other paremeter Attributes should be considered. Eg. MaybeNullWhen() or EnumeratorCancellation.
The text was updated successfully, but these errors were encountered: