public IConfigurationObject this[IHaveName display] { get { if (display == null) { throw new ArgumentNullException("The specific display is null"); } return(this[display.Name]); } set { if (display == null) { throw new ArgumentNullException("The specific display is null"); } this[display.Name] = value; } }
public static TreeNode CreateTreeNode(this IHaveName nodeObject, int imageIndex) { return(CreateTreeNode(nodeObject.Name, nodeObject, imageIndex)); }