Nice ReSharper feature
Nov 1, 2007
This morning due to a modification error I made in a ReSharper Live Template I discovered a cool feature, see the following picture in which ReSharper shows you that you made a recursive call:
This morning due to a modification error I made in a ReSharper Live Template I discovered a cool feature, see the following picture in which ReSharper shows you that you made a recursive call:
In place of writing something like:
protected string GetUrl(Information info)
{
if (info is News)
return ResolveUrl(string.Format("~/news.aspx/{0}", info.NormalizedTitle));
else if (info is Publication)
return ResolveUrl(string.Format("~/publications.aspx/{0}", info.NormalizedTitle));
else
return string.Empty;
}