ReSharper codecompletion cannot see field in class

I am using Build 66.

I am implementing an Equals method and have something like this:

class Person {
private string _name;
private int _age;
...
override public bool ToString(object obj) {
....
Person other = obj as Person;
return age== other.|age && .....
}
}

However, when I want to complete other. it does not show the private fields
of Person.

Kind regards
Thomas Koch


N.B. GREAT idea with this ReSharper tool. :)


1 comment
Comment actions Permalink

Thomas,

this is a known problem with visibility of private members in
completion. We're going to fix it ASAP.

"Thomas Koch" <thomask_vs@yahoo.dk> wrote in message
news:c1cs00$lvt$1@is.intellij.net...

I am using Build 66.

>

I am implementing an Equals method and have something like this:

>

class Person {
private string _name;
private int _age;
...
override public bool ToString(object obj) {
....
Person other = obj as Person;
return age== other.|age && .....
}
}

>

However, when I want to complete other. it does not show the private

fields

of Person.

>

Kind regards
Thomas Koch

>
>

N.B. GREAT idea with this ReSharper tool. :)

>
>


0

Please sign in to leave a comment.