public void Add(bool allow, string physicalPath, bool uiDeletable, string groupID, string description)
        {
            bool flag = false;

            for (int i = 0; i < this.extensionMap.Count; i++)
            {
                IsapiExtensionList.ExtensionMapUnit extensionMapUnit = this.extensionMap[i];
                if (string.Compare(extensionMapUnit.Extension.PhysicalPath, physicalPath, true, CultureInfo.InvariantCulture) == 0 && string.Compare(extensionMapUnit.Extension.GroupID, groupID, true, CultureInfo.InvariantCulture) == 0)
                {
                    extensionMapUnit.Extension.Allow       = allow;
                    extensionMapUnit.Extension.UIDeletable = uiDeletable;
                    extensionMapUnit.Extension.Description = description;
                    flag = true;
                }
            }
            if (!flag)
            {
                IsapiExtension isapiExtension = new IsapiExtension(physicalPath, groupID, description, allow, uiDeletable);
                this.restrictionList.Add(isapiExtension.ToMetabaseString());
                this.extensionMap.Add(new IsapiExtensionList.ExtensionMapUnit(isapiExtension, this.restrictionList.Count - 1));
            }
        }
 public void Add(IsapiExtension extension)
 {
     this.restrictionList.Add(extension.ToMetabaseString());
     this.extensionMap.Add(new IsapiExtensionList.ExtensionMapUnit(extension, this.restrictionList.Count - 1));
 }