When encapsulating a field in a nested class or structure that contains the same name as a property in the parent class, ReSharper complains that the name conflicts. As an example, given this class:
public class A
{
private int _field;
public int Field
{
get { return _field; }
set { _field = value; }
}
private struct B
{
internal int _field;
}
}
Attempting to encapsulate B._field with a property named Field results in the message "Conflict on property A.Field" even though the names do not conflict.