Examples of errors detected by the V3140 diagnostic

V3140. Property accessors use different backing fields.


RunUO

V3140 Property accessors use different backing fields. WallBanner.cs 77


private bool m_IsRewardItem;

[CommandProperty( AccessLevel.GameMaster )]
public bool IsRewardItem
{
  get{ return m_IsRewardItem; }
  set{ m_IsRewardItem = value; InvalidateProperties(); }
}

private bool m_East;

[CommandProperty( AccessLevel.GameMaster )]
public bool East
{
  get{ return m_East; }
  set{ m_IsRewardItem = value; InvalidateProperties(); }
}


Bugs Found

Checked Projects
374
Collected Errors
13 663