Autoproperties when implementing an interface

Hello
 
Right now when you implement an interface all the properties will have getters and setters with the code: throw new System.NotImplementedException();
Is it possible to implement the properties as auto-properties instead?
 
Cheers
 
Gabriel Lozano-Moran
]]>

7 comments
Comment actions Permalink

Hello Gabriel Lozano-Moran,

See combobox below the list with label "Properties as"

Sincerely,
Ilya Ryzhenkov

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


G> Hello
G>
G> Right now when you implement an interface all the properties will
G> have getters and setters with the code: throw new
G> System.NotImplementedException();
G>
G> Is it possible to implement the properties as auto-properties
G> instead?
G>
G> Cheers
G>
G> Gabriel Lozano-Moran
G>


0
Comment actions Permalink

Hello Ilya

I am not sure to where I can find this "Properties as"?

cheers

Gabriel


"Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
news:76a2bd0b15962c8ca960358a93811@news.intellij.net...

Hello Gabriel Lozano-Moran,

>

See combobox below the list with label "Properties as"

>

Sincerely,
Ilya Ryzhenkov

>

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

>
>

G> Hello
G> G> Right now when you implement an interface all the properties will
G> have getters and setters with the code: throw new
G> System.NotImplementedException();
G> G> Is it possible to implement the properties as auto-properties
G> instead?
G> G> Cheers
G> G> Gabriel Lozano-Moran
G>



0
Comment actions Permalink

Hello Gabriel Lozano-Moran,

Do you use Alt-Ins (ReSharper | Code | Generate) to implement members?

Sincerely,
Ilya Ryzhenkov

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


G> Hello Ilya
G>
G> I am not sure to where I can find this "Properties as"?
G>
G> cheers
G>
G> Gabriel
G>
G> "Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
G> news:76a2bd0b15962c8ca960358a93811@news.intellij.net...
G>
>> Hello Gabriel Lozano-Moran,
>>
>> See combobox below the list with label "Properties as"
>>
>> Sincerely,
>> Ilya Ryzhenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>> G> Hello
>> G> G> Right now when you implement an interface all the properties
>> will
>> G> have getters and setters with the code: throw new
>> G> System.NotImplementedException();
>> G> G> Is it possible to implement the properties as auto-properties
>> G> instead?
>> G> G> Cheers
>> G> G> Gabriel Lozano-Moran
>> G>


0
Comment actions Permalink

Nope, I used the quickfix feature but it would be nice if we could have the
possibility to change this somewhere in the options.

Cheers

Gabriel Lozano-Moran

"Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
news:76a2bd0b1596648ca960c62181fe5@news.intellij.net...

Hello Gabriel Lozano-Moran,

>

Do you use Alt-Ins (ReSharper | Code | Generate) to implement members?
Sincerely,
Ilya Ryzhenkov

>

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

>
>

G> Hello Ilya
G> G> I am not sure to where I can find this "Properties as"?
G> G> cheers
G> G> Gabriel
G> G> "Ilya Ryzhenkov" <orangy@jetbrains.com> wrote in message
G> news:76a2bd0b15962c8ca960358a93811@news.intellij.net...
G>

>>> Hello Gabriel Lozano-Moran,
>>>
>>> See combobox below the list with label "Properties as"
>>>
>>> Sincerely,
>>> Ilya Ryzhenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>> G> Hello
>>> G> G> Right now when you implement an interface all the properties
>>> will
>>> G> have getters and setters with the code: throw new
>>> G> System.NotImplementedException();
>>> G> G> Is it possible to implement the properties as auto-properties
>>> G> instead?
>>> G> G> Cheers
>>> G> G> Gabriel Lozano-Moran
>>> G>
>



0
Comment actions Permalink

Hello,

Nope, I used the quickfix feature but it would be nice if we could
have the possibility to change this somewhere in the options.


Normally, the QFix should be using MRU settings from the Generate invocations.
So, the Generate settings work as Options for the related QFixes.

If the connection is missing somewhere, please report it as a bug.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Comment actions Permalink

Yes but that implies that you have to use the Generation invocations feature
to be able to set the option which is from a usability stand of point a bit
of a burden no?

"Serge Baltic" <baltic@intellij.net> wrote in message
news:dc0986bfde6f68ca986181337307@news.intellij.net...

Hello,

>
>> Nope, I used the quickfix feature but it would be nice if we could
>> have the possibility to change this somewhere in the options.
>

Normally, the QFix should be using MRU settings from the Generate
invocations. So, the Generate settings work as Options for the related
QFixes.

>

If the connection is missing somewhere, please report it as a bug.

>

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

>



0
Comment actions Permalink

Hello Gabriel Lozano-Moran,

I agree the solution is not ideal, but making another option with settings
for some generation constructs in ReSharper is a bit of overkill. We have
a better idea in mind about how all that inspections, quick fixes, context
actions, generates and so on can be customized, but it came too late and
didn't fit into the ReSharper 4 timeframe. So we decided to do this kind
of workaround, which allows you to customize the thing, though not in an
obvious way. In the next major release, we will try to address this and many
other customization issues.

Stay tuned :)

Sincerely,
Ilya Ryzhenkov

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


G> Yes but that implies that you have to use the Generation invocations
G> feature to be able to set the option which is from a usability stand
G> of point a bit of a burden no?
G>
G> "Serge Baltic" <baltic@intellij.net> wrote in message
G> news:dc0986bfde6f68ca986181337307@news.intellij.net...
G>
>> Hello,
>>
>>> Nope, I used the quickfix feature but it would be nice if we could
>>> have the possibility to change this somewhere in the options.
>>>
>> Normally, the QFix should be using MRU settings from the Generate
>> invocations. So, the Generate settings work as Options for the
>> related QFixes.
>>
>> If the connection is missing somewhere, please report it as a bug.
>>
>> -
>> Serge Baltic
>> JetBrains, Inc - http://www.jetbrains.com
>> "Develop with pleasure!"


0

Please sign in to leave a comment.