statler / dxcorecommunityplugins

Automatically exported from code.google.com/p/dxcorecommunityplugins
0 stars 0 forks source link

CR_ImplementBaseConstructors - Wrong text in constructor summary tag. #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Assume I have Flower class. Plant class is base class for Flower.

Generated constructors for Flower class have summary text:
"Initializes a new instance of the Plant class."

Proper text should be:
"Initializes a new instance of the Flower class."

What version of the product are you using? On what operating system?
Plugin version: 1.0.0.67.
DXCore version: 3.0.8, Daily Build 2008 sep 04.

Original issue reported on code.google.com by przemysl...@dacsoftware.biz on 29 Sep 2008 at 10:28

GoogleCodeExporter commented 9 years ago
To the best of my knowledge, this plugin creates no such summary tag. 

Can you give some example code on which this plugin has the described effect?

Original comment by RoryBec...@gmail.com on 30 Sep 2008 at 7:36

GoogleCodeExporter commented 9 years ago
It looks I was too hasty with this bug report.
It is caused by "Add missing constructors" code modification, which turned out 
to be
standard one. I thought it was added by this plugin. I'm sorry for my mistake.

I added suggestion to SC that should prevent at least me from making such 
mistakes:
http://www.devexpress.com/Support/Center/p/S130087.aspx

BTW, how does CR_ImplementBaseConstructors work?

Original comment by przemysl...@dacsoftware.biz on 30 Sep 2008 at 10:07

GoogleCodeExporter commented 9 years ago
Well essentially it...
...determines the base class from which the active class descends 
...iterates the members of that baseclass collecting a list of constructors
...iterates the collection and creates equivalent constructors on the active 
class

The source code can be viewed in full through this site. 

The relevant page is here
(http://code.google.com/p/dxcorecommunityplugins/source/browse/trunk/CR_Implemen
tBaseConstructors/CR_ImplementBaseConstructors/ImplementBaseConstructors.vb)

It is not very well commented or very efficient at the moment, but it does the 
job :)

Original comment by RoryBec...@gmail.com on 30 Sep 2008 at 12:13

GoogleCodeExporter commented 9 years ago

Original comment by RoryBec...@gmail.com on 30 Sep 2008 at 12:14