This is a migrated thread and some comments may be shown as answers.

Private Parameterless Constructors

3 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 Nov 2008, 04:47 PM
I am evaluating Telerik Reporting and I am very close to purchasing the product, however I do have an issue. My issue is that my business objects do not have public parameterless constructors and I would prefer to keep it that way. Would it be possible for support for private parameterless constructors to be added?

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Nov 2008, 04:45 PM
Hi David,

Thank you for your interest in Telerik Reporting.
What you can do is make the class internal and the default constructor public. Meanwhile, we would consider adding support for instantiating private parameterless constructors for the Q3 SP1 release expected within a month.

Do let us know if other ideas come to mind.

Sincerely yours,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
David
Top achievements
Rank 1
answered on 11 Nov 2008, 04:53 PM
Making the class internal is not an option as my business objects are in a separate data layer assembly, but thank you for responding quickly. For now, I can temporarily change the parameterless constructor to public while designing the report, not an optimal solution by any means but workable. I would prefer, however, that you do add support for this in your upcoming release; how likely is this exactly?
0
Steve
Telerik team
answered on 12 Nov 2008, 10:06 AM
Hi David,

Our developers have already researched on the matter and we would be able to introduce this for the Q3 SP1 release. So you would be able to instantiate your business objects if you have public classes with internal constructor.

Best wishes,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Steve
Telerik team
David
Top achievements
Rank 1
Share this question
or