NClass icon indicating copy to clipboard operation
NClass copied to clipboard

More comfortable ways to insert members etc.

Open malino-dev opened this issue 5 years ago • 3 comments

Hello,

I feel uncomfortable with this Right-click > Edit members and then always add member/add method etc.

What about a huge text area where we can just insert C# code like this:

private int X; private int Y;

public int GetX(); public int GetY();

I already read about issue #13 but I think it would be more comfortable to do it directly in NClass, especially if you haven't written the C# code already.

Yours sincerely.

malino-dev avatar Apr 09 '19 10:04 malino-dev

Hello, thank you for your suggestion. I need to think about it. It is going to be kinda difficult to validate and report errors properly.

Regards

gbaychev avatar Apr 13 '19 09:04 gbaychev

Maybe this would be interesting in a more UML-like way, such as:

-x:int
+get():int
+set(x:int)

"-" means private, "+" public, "*" protected.

Baltasarq avatar Aug 31 '20 11:08 Baltasarq

This is not a bad idea, I was also thinking something along the lines of adding a code window and to validate the syntax with antlr or roslyn for c#.

gbaychev avatar Aug 31 '20 12:08 gbaychev