You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Body expression constructor is currently not supported as already mentioned in #56. Since all the others code actions have been removed, it does make sense to provide a new action to initialize the ctor - as body expression - from the properties.
New Action:
Initialize body expression ctor from properties
possible body expression constructors:
public NewClass (int field1) => Field1 = field1;
public Field1 { get; set; }
public NewClass (int field1, int field2) => (Field1, Field2) = (field1, field2);
public Field1 { get; set; }
Left literals could be prefixed with this. or _.
The text was updated successfully, but these errors were encountered:
bard83
changed the title
CodeActionProvider should support body expression constructor
CodeActionProvider should support body expression constructor with new action: Initialize body expression ctor from properties
Jul 5, 2023
Body expression constructor is currently not supported as already mentioned in #56. Since all the others code actions have been removed, it does make sense to provide a new action to initialize the ctor - as body expression - from the properties.
New Action:
possible body expression constructors:
Left literals could be prefixed with
this.
or_
.The text was updated successfully, but these errors were encountered: