This project is read-only.

Better support for attributes in captured primary constructor arguments

Topics: C# Language Design
Apr 8, 2014 at 12:10 AM
If I understand correctly, right now I have to write something like
public class MyClass([NotNull] [field: NotNull] int x) {}
if I want to apply the attribute to both field and parameter.

Would it be possible to add something like [all: NotNull] that fails if attribute does not support either?