Create property/field/local variable not working correctly

Hi,

In the code below stockTransactions.First().Invoice is of type Journal.

In 5.1.3 create property field/property/local variable will pick this up and correctly create the property for me. In Build 6.0.2102.59 it creates: 

protected object PurchaseInvoice
        {
            get { throw new NotImplementedException(); }
            set { throw new NotImplementedException(); }
        }
instead of


private Journal PurchaseInvoice {get;set;}

Resharper.PNG
Regards
Jeremy

1 comment

Hello Jeremy,

I've tested this behavior with both ReSharper 5.1.3 and the latest ReSharper
6.0 EAP and they both generate

protected object PurchaseInvoice
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}

with the pop-up menu that lets you generate an auto-property, property with
backing field or leave the default implementation. Thank you!


Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

In the code below stockTransactions.First().Invoice is of type
Journal.

In 5.1.3 create property field/property/local variable will pick this
up and correctly create the property for me. In Build 6.0.2102.59 it
creates:

protected object PurchaseInvoice
{
get { throw new NotImplementedException(); }
set { throw new NotImplementedException(); }
}
instead of

private Journal PurchaseInvoice {get;set;}

Image:Resharper.PNG
Regards
Jeremy
---
Original message URL:
http://devnet.jetbrains.net/message/5292059#5292059



0

Please sign in to leave a comment.