Project
ReSharper
Priority
Normal
Type
Bug
Fix versions
2.5.1
State
Fixed
Assignee
Evgeny Pasynkov
Subsystem
Refactoring
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Paul Laudeman
    5 years ago (06 Aug 2006 20:16)
  • Updated by   Paul Laudeman
    5 years ago (18 Dec 2006 17:38)
  • Jira: RSRP-27092
    (history, comments)
 
RSRP-27092 Introduce field does not work correctly with nullable properties
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
If I have the following nullable property with no field defined:

public DateTime? Created
{
get { return created; }
set { created = value; }
}

ReSharper will helpfully ask me if I'd like to introduce a field for "created". When ReSharper creates the field, it does not insert the "?" after the type name:

private DateTime created;

The expected behavior should be:

private DateTime? created;

Issue was closed
Comments (2)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Andrey Simanovsky
  Andrey Simanovsky
08 Dec 2006 17:41
5 years ago
Live Templates seem to fail to present nullable types.
Ilya Ryzhenkov
  Ilya Ryzhenkov
14 Dec 2006 19:17
5 years ago
UsingInsertionHelper.BindToType works incorrectly with nullable types