/// <summary> /// Register a specific helper to attacht to . /// </summary> /// <param name="browserType">Type of the browser.</param> /// <param name="attachToHelper">The attach to helper.</param> public static void RegisterAttachToHelper(Type browserType, IAttachTo attachToHelper) { if (!browserType.IsSubclassOf(typeof(Browser))) { throw new ArgumentException("Not a subclass of Browser", "browserType"); } AttachToHelpers.Add(browserType, attachToHelper); }
public static void RegisterAttachToHelper(Type browserType, IAttachTo attachToHelper) { AttachToHelpers.Add(browserType, attachToHelper); }