When dealing with a collection of key/value pairs is there any difference between using its Add() method and directly assigning it?
For example, a HtmlGenericControl will have an Attributes Collection:
var anchor = new HtmlGenericControl("a");
// These both work:
anchor.Attributes.Add("class", "xyz");
anchor.Attributes["class"] = "xyz";
Is it purely a matter of preference, or is there a reason for doing one or the other?