Menu

Skip to content
  • Home
  • About

Fire Breaks Ice

Sitecore Tips and Best Practices by Mark Ursino, Sitecore MVP

ASP.NET

March 22, 2011 by Mark Ursino on ASP.NET

C# Property vs. Method Guidelines

Sometimes its hard to determine whether to use a property or a method in C#. There are however guidelines to help you choose the right feature to use.

 
March 11, 2011 by Mark Ursino on ASP.NET

Right-Click Attach To Process in Visual Studio

Here’s a tip on how to tweak your Visual Studio code window context menu to include the Attach to Process debug command.

 
January 29, 2011 by Mark Ursino on ASP.NET

Use Any() Instead of Count() To See if an IEnumerable Has Any Objects

When determining if an IEnumerable contains any objects, avoid Count() and instead use Any().

 
January 13, 2011 by Mark Ursino on ASP.NET

Filter a List to Unique Objects with a HashSet

The generic HashSet in C# allows for an easy way to filter a list to distinct objects with minimal coding.

 
January 9, 2011 by Mark Ursino on ASP.NET

Disable ASP.NET Web Service Test Pages

Follow this simple web.config tweak to disable the form on any web service ASMX test page.

 
January 2, 2011 by Mark Ursino on ASP.NET

Convert a List of BaseClass to a List of DerivedClass in C#

Its possible to convert a list of objects from narrower types to wider types and vice versa using the OfType extension method. This is useful for simple filtering.

 

Categories

  • ASP.NET (6)
  • jQuery (2)
  • Sitecore (52)

Recent Comments

  • amit on How to Setup a Sitecore Preview Site to Review Content Before Publishing
  • Kajal on How to Setup a Sitecore Preview Site to Review Content Before Publishing
  • David on Sitecore Internal Links
  • John J Aavang on Storing Sitecore Media in the Database vs. the File System
  • Vale on Programmatically Add Controls to the HTML Head in Sitecore

Sitecore Links

  • .Sitecore
  • Aboo Bolaky
  • Alex Shyba
  • Anders Dreyer
  • aweber1.0
  • Brian Pedersen
  • Christopher Wojciech
  • Coffee => Coder => Code
  • Dev Sitecored²
  • Everything Web
  • John West
  • Learn Sitecore
  • Let's do Sitecore
  • Mark van Aalst
  • Matthew Kenny
  • Max Slabyak
  • Molten Core
  • Project Lifecycle
  • Sean Kearney
  • Sebastian Patten
  • Sitecore Australia
  • Sitecore Blog
  • Sitecore Climber
  • Sitecore Development
  • Sitecore Gadgets
  • Techphoria414
  • The Client View
  • The Sitecore Experience
  • Web Content Management and Delivery

Archives

  • November 2017 (1)
  • June 2017 (1)
  • March 2017 (1)
  • February 2017 (1)
  • May 2016 (1)
  • April 2016 (2)
  • December 2015 (1)
  • May 2015 (2)
  • April 2015 (1)
  • January 2015 (1)
  • December 2014 (2)
  • June 2014 (1)
  • November 2013 (1)
  • October 2013 (1)
  • June 2013 (1)
  • April 2013 (1)
  • February 2013 (1)
  • January 2013 (1)
  • December 2012 (1)
  • June 2012 (2)
  • May 2012 (2)
  • March 2012 (1)
  • February 2012 (1)
  • January 2012 (5)
  • December 2011 (4)
  • November 2011 (1)
  • July 2011 (1)
  • June 2011 (1)
  • May 2011 (2)
  • March 2011 (6)
  • February 2011 (2)
  • January 2011 (10)
 
Subscribe!
from Boston