ASP.NET WebForm:
<asp:DataGrid OnItemDataBound="OnDataBound" ..etc..>
<ItemTemplate>
<asp:Textbox id="foo"/>
</ItemTemplate>
</asp:DataGrid>
Codebehind:
protected void OnDataBound( object sender, DataGridItemEventArgs e )
{
Textbox foo = e.Item.FindControl( "foo" ); // <--- declaration of variable foo is flagged as hiding the field of the same name
}
ReSharper does not recognize that foo only exists in the template section of the control, and that there is no page.foo field. It will flag the line above as a warning and also incorrectly provide intellisense for a field named foo at the page class level, even though it doesn't really exist.