Encapsulate field bug


Simple Example

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication9
{
class Program
{
DateTime? data = null;

static void Main(string[] args)
{
}
}
}


After try to make Read Write Property for "data" variable via Alt+Ins

I have
-


using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication9
{
class Program
{
public Nullable? Data <----- Type of
"Nullable?", but must be "DateTime?"
{
get { return data; }
set { data = value; }
}

DateTime? data = null;

static void Main(string[] args)
{
}
}
}

-


--
ïÔÐÒÁ×ÌÅÎÏ M2, ÒÅ×ÏÌÀÃÉÏÎÎÏÊ ÐÏÞÔÏ×ÏÊ ÐÒÏÇÒÁÍÍÏÊ Opera:
http://www.opera.com/mail/

4 comments
Comment actions Permalink

This issue is not reproducable for me on the latest build. Is it fixed for
you?

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Simple Example

using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication9
{
class Program
{
DateTime? data = null;
static void Main(string[] args)
{
}
}
}
After try to make Read Write Property for "data" variable via Alt+Ins

I have
----------------------------------------------------------------------
--
--------------
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication9
{
class Program
{
public Nullable? Data <----- Type of
"Nullable?", but must be "DateTime?"
{
get { return data; }
set { data = value; }
}
DateTime? data = null;

static void Main(string[] args)
{
}
}
}
----------------------------------------------------------------------
-- --

http://www.opera.com/mail/



0
Comment actions Permalink

Yes, i can reproduce it in every project type, even in build 217

May be you do something wrong? or dot not understand bug

ïÔÐÒÁ×ÌÅÎÏ M2, ÒÅ×ÏÌÀÃÉÏÎÎÏÊ ÐÏÞÔÏ×ÏÊ ÐÒÏÇÒÁÍÍÏÊ Opera:
http://www.opera.com/mail/

0
Comment actions Permalink

Just checked in the latest build again. I took your example, invoked Alt-Insert,
Read-Write Property and selected 'data'. Everything was generated fine. Is
it still an issue for you?

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Yes, i can reproduce it in every project type, even in build 217

May be you do something wrong? or dot not understand bug

ïÔÐÒÁ×ÌÅÎÏ M2, ÒÅ×ÏÌÀÃÉÏÎÎÏÊ ÐÏÞÔÏ×ÏÊ ÐÒÏÇÒÁÍÍÏÊ Opera:
http://www.opera.com/mail/



0
Comment actions Permalink

On Mon, 27 Feb 2006 14:01:51 +0200, Valentin Kipiatkov 
<valentin@jetbrains.com> wrote:

Just checked in the latest build again. I took your example, invoked 
Alt-Insert, Read-Write Property and selected 'data'. Everything was 
generated fine. Is it still an issue for you?

>

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>
>> Yes, i can reproduce it in every project type, even in build 217
>>  May be you do something wrong? or dot not understand bug
>>  Отправлено M2, революционной почтовой программой Opera:
>> http://www.opera.com/mail/
>>
>
>

Build 219 -- it is all OK
thx

--
Отправлено M2, революционной почтовой программой Opera: 
http://www.opera.com/mail/

0

Please sign in to leave a comment.