Creating Properties

Hello,

Was wondering if there is a way to encapsulate all selected fields in a class, There was a tool called vsPropertyGenerator that would accomplish that for you a while back, it would be a great addin


thanks

5 comments
Comment actions Permalink

"pr1smiley" <dana.johnson@dynamicpresence.com> schrieb im Newsbeitrag
news:24987239.90821215454107617.JavaMail.jive@app4.labs.intellij.net...

Was wondering if there is a way to encapsulate all selected fields in a
class, There was a tool called vsPropertyGenerator that would accomplish
that for you a while back, it would be a great addin


ALT+Ins

Regards

Albert

0
Comment actions Permalink

excellent!

Thanks

0
Comment actions Permalink

Is there a way to customize the output format of the Properties Generation? For instance, if you don't want "Property" appended to each property name.

0
Comment actions Permalink

Hello ironsam,

You didn't say you are working with VB.NET, but I think this is the case.
ReSharper have to add "Property" to the name for VB.NET since the language
is case-insensitive and property cannot be named the same as field but capitalized,
like in C#. But if you have prefix for the field, like underscore, you should
tell ReSharper that it is not part of the name, but rather field designator.
Open ReSharper options, and set your naming conventions under Languages /
Common / Naming Style.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


i> Is there a way to customize the output format of the Properties
i> Generation? For instance, if you don't want "Property" appended to
i> each property name.
i>


0
Comment actions Permalink

Thanks Ilya - that's what I was looking for.

0

Please sign in to leave a comment.