Bunch of ReSharper suggestions

This commit is contained in:
2015-11-02 20:29:00 -05:00
parent ff2ef0fd46
commit d8d7a9b5ba
15 changed files with 43 additions and 215 deletions

View File

@@ -86,12 +86,14 @@ namespace FeedCenter
void HandleObjectStateManagerObjectStateManagerChanged(object sender, CollectionChangeEventArgs e)
{
if (e.Element is Category)
var element = e.Element as Category;
if (element != null)
{
if (_allCategories == null)
return;
var category = e.Element as Category;
var category = element;
switch (e.Action)
{
@@ -113,7 +115,7 @@ namespace FeedCenter
if (_allFeeds == null)
return;
var feed = e.Element as Feed;
var feed = (Feed) e.Element;
switch (e.Action)
{