consulo / consulo-csharp

Languages: C#
Apache License 2.0
50 stars 6 forks source link

Adding arguments to generated constructor #442

Closed Souk21 closed 8 years ago

Souk21 commented 8 years ago

For now, constructor generation only generates the following: public CLASSNAME () { }

It would be nice to be able to pick some fields/proprieties that should be added as arguments.

int count;
float ratio;

public CLASSNAME (int count, float ratio) {
    this.count = count;
    this.ratio = ratio;
}
VISTALL commented 8 years ago

It's generate constructor based on base constructor (Object class has one empty constructor)

VISTALL commented 8 years ago

Fixed. Try it after C# plugin update.

Thanks.

Souk21 commented 8 years ago

Works like a charm thanks a lot!

VISTALL commented 8 years ago

Nice.

Thanks