コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public static void RegisterAttachToHelper(Type browserType, IAttachTo attachToHelper)
 {
     AttachToHelpers.Add(browserType, attachToHelper);
 }