/// <summary>
            /// Pushes a collection onto the stack.
            /// </summary>
            /// <param name="collection">The collection to push.</param>
            private void PushCollection(ElementCollection collection)
            {
                if (collection.Count <= 0)
                {
                    throw new ArgumentException(String.Format(
                                                    CultureInfo.InvariantCulture,
                                                    "Collection has {0} elements. Must have at least one.",
                                                    collection.Count));
                }

                CollectionTuple tuple = new CollectionTuple(collection);

                this.collectionStack.Push(tuple);
                this.FindNext(tuple);
            }
Beispiel #2
0
            /// <summary>
            /// Pushes a collection onto the stack.
            /// </summary>
            /// <param name="elementCollection">The collection to push.</param>
            private void PushCollection(ElementCollection elementCollection)
            {
                if (elementCollection.Count <= 0)
                {
                    throw new ArgumentException(String.Format(
                                                    CultureInfo.InvariantCulture,
                                                    WixStrings.EXP_CollectionMustHaveAtLeastOneElement,
                                                    elementCollection.Count));
                }

                CollectionTuple tuple = new CollectionTuple(elementCollection);

                this.collectionStack.Push(tuple);
                this.FindNext(tuple);
            }
Beispiel #3
0
 /// <summary>
 /// Adds a nested collection to this collection.
 /// </summary>
 /// <param name="collection">ElementCollection to add.</param>
 public void AddCollection(ElementCollection collection)
 {
     this.items.Add(collection);
 }
 /// <summary>
 /// Adds a nested collection to this collection.
 /// </summary>
 /// <param name="collection">ElementCollection to add.</param>
 internal void AddCollection(ElementCollection collection)
 {
     this.items.Add(collection);
 }
Beispiel #5
0
 public File()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(AssemblyName)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Permission)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CopyFile)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Shortcut)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ODBCDriver)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ODBCTranslator)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Class)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(AppId)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(TypeLib)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Patch)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(PerfCounter)));
     this.children = childCollection0;
 }
Beispiel #6
0
 public Billboard()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(Control), 0, -1));
     this.children = childCollection0;
 }
Beispiel #7
0
 public ExternalFile()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(ProtectRange), 1, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(SymbolPath), 1, -1));
     ElementCollection childCollection1 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(IgnoreRange)));
     childCollection0.AddCollection(childCollection1);
     this.children = childCollection0;
 }
Beispiel #8
0
 public ElementCollectionEnumerator(ElementCollection collection)
 {
     this.collection = collection;
 }
Beispiel #9
0
 public Component()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(AppId)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Category)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Class)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Condition)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CopyFile)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CreateFolder)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Environment)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Extension)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(File)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(IniFile)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Interface)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(IsolateComponent)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ODBCDataSource)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ODBCDriver)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ODBCTranslator)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ProgId)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Registry)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(RemoveFile)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(RemoveFolder)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ReserveCost)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ServiceControl)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ServiceInstall)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Shortcut)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(TypeLib)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Certificate)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(FileShare)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ServiceConfig)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(SqlDatabase)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(SqlScript)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(SqlString)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(User)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(WebAppPool)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(WebDir)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(WebFilter)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(WebProperty)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(WebServiceExtension)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(WebSite)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(WebVirtualDir)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ISchemaElement)));
     this.children = childCollection0;
 }
Beispiel #10
0
 public Wix()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, 1);
     ElementCollection childCollection1 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     ElementCollection childCollection2 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, 1);
     childCollection2.AddItem(new ElementCollection.ChoiceItem(typeof(Product)));
     childCollection2.AddItem(new ElementCollection.ChoiceItem(typeof(Module)));
     childCollection1.AddCollection(childCollection2);
     childCollection1.AddItem(new ElementCollection.SequenceItem(typeof(Fragment), 0, -1));
     childCollection0.AddCollection(childCollection1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(PatchCreation)));
     this.children = childCollection0;
 }
Beispiel #11
0
 public WebVirtualDir()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(WebApplication), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(WebError), 0, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(WebVirtualDir), 0, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(MimeMap), 0, -1));
     this.children = childCollection0;
 }
Beispiel #12
0
 public ComplianceDrive()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 1, 1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(DirectorySearch)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(DirectorySearchRef)));
     this.children = childCollection0;
 }
Beispiel #13
0
 public WebSite()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(WebAddress), 1, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(WebApplication), 0, 1));
     ElementCollection childCollection1 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(WebDir)));
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(WebError)));
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(WebFilter)));
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(WebVirtualDir)));
     childCollection0.AddCollection(childCollection1);
     this.children = childCollection0;
 }
Beispiel #14
0
 public ComplianceCheck()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(ComplianceDrive), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(ComponentSearch), 0, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(RegistrySearch), 0, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(IniFileSearch), 0, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(DirectorySearch), 0, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(FileSearch), 0, -1));
     this.children = childCollection0;
 }
Beispiel #15
0
            /// <summary>
            /// Pushes a collection onto the stack.
            /// </summary>
            /// <param name="elementCollection">The collection to push.</param>
            private void PushCollection(ElementCollection elementCollection)
            {
                if (elementCollection.Count <= 0)
                {
                    throw new ArgumentException(String.Format(
                        CultureInfo.InvariantCulture,
                        WixStrings.EXP_CollectionMustHaveAtLeastOneElement,
                        elementCollection.Count));
                }

                CollectionTuple tuple = new CollectionTuple(elementCollection);
                this.collectionStack.Push(tuple);
                this.FindNext(tuple);
            }
Beispiel #16
0
        public void RemoveElement(ISchemaElement element)
        {
            foreach (object obj in this.items)
            {
                CollectionItem collectionItem = obj as CollectionItem;
                if (collectionItem != null)
                {
                    if (collectionItem.ElementType.IsAssignableFrom(element.GetType()))
                    {
                        if (collectionItem.Elements.Count == 0)
                        {
                            return;
                        }

                        collectionItem.RemoveElement(element);

                        if (collectionItem.Elements.Count == 0)
                        {
                            this.containersUsed--;
                        }

                        this.totalContainedItems--;
                        return;
                    }

                    continue;
                }

                ElementCollection collection = obj as ElementCollection;
                if (collection != null)
                {
                    if (collection.Count == 0)
                    {
                        continue;
                    }

                    try
                    {
                        collection.RemoveElement(element);

                        if (collection.Count == 0)
                        {
                            this.containersUsed--;
                        }

                        this.totalContainedItems--;
                        return;
                    }
                    catch (ArgumentException)
                    {
                        // Eat the exception and keep looking. We'll throw our own if we can't find its home.
                    }

                    continue;
                }
            }

            throw new ArgumentException(String.Format(
                                            CultureInfo.InvariantCulture,
                                            "Element of type {0} is not valid for this collection.",
                                            element.GetType().Name));
        }
Beispiel #17
0
 public ComponentGroup()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 1, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ComponentRef)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ISchemaElement)));
     this.children = childCollection0;
 }
Beispiel #18
0
 public ComboBox()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(ListItem), 0, -1));
     this.children = childCollection0;
 }
Beispiel #19
0
 public AdminUISequence()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Custom)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Show)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CostInitialize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(FileCost)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CostFinalize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ExecuteAction)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallValidate)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallInitialize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallAdminPackage)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallFiles)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallFinalize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(LaunchConditions)));
     this.children = childCollection0;
 }
Beispiel #20
0
 public Family()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(UpgradeImage), 1, -1));
     ElementCollection childCollection1 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(ExternalFile)));
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(ProtectFile)));
     childCollection0.AddCollection(childCollection1);
     this.children = childCollection0;
 }
Beispiel #21
0
 public Control()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(Text), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(ComboBox), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(ListBox), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(ListView), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(RadioGroup), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(RadioButtonGroup), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(Property), 0, 1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(Binary), 0, 1));
     ElementCollection childCollection1 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(Condition)));
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(Publish)));
     childCollection1.AddItem(new ElementCollection.ChoiceItem(typeof(Subscribe)));
     childCollection0.AddCollection(childCollection1);
     this.children = childCollection0;
 }
Beispiel #22
0
 public FeatureRef()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ComponentGroupRef)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ComponentRef)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Feature)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(FeatureRef)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(MergeRef)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(ISchemaElement)));
     this.children = childCollection0;
 }
Beispiel #23
0
 public AdvertiseExecuteSequence()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CostInitialize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CostFinalize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Custom)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallValidate)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallInitialize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(CreateShortcuts)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(RegisterClassInfo)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(RegisterExtensionInfo)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(RegisterMIMEInfo)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(RegisterProgIdInfo)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(PublishComponents)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(PublishFeatures)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(PublishProduct)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(InstallFinalize)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(MsiPublishAssemblies)));
     this.children = childCollection0;
 }
Beispiel #24
0
 /// <summary>
 /// Adds a nested collection to this collection.
 /// </summary>
 /// <param name="collection">ElementCollection to add.</param>
 public void AddCollection(ElementCollection collection)
 {
     this.items.Add(collection);
 }
Beispiel #25
0
 public CreateFolder()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Shortcut)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Permission)));
     this.children = childCollection0;
 }
Beispiel #26
0
 public AppId()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Class)));
     this.children = childCollection0;
 }
Beispiel #27
0
 public CustomTable()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(Column), 0, -1));
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(Row), 0, -1));
     this.children = childCollection0;
 }
            /// <summary>
            /// Pushes a collection onto the stack.
            /// </summary>
            /// <param name="collection">The collection to push.</param>
            private void PushCollection(ElementCollection collection)
            {
                if (collection.Count <= 0)
                {
                    throw new ArgumentException(String.Format(
                        CultureInfo.InvariantCulture,
                        "Collection has {0} elements. Must have at least one.",
                        collection.Count));
                }

                CollectionTuple tuple = new CollectionTuple(collection);
                this.collectionStack.Push(tuple);
                this.FindNext(tuple);
            }
Beispiel #29
0
 public DigitalSignature()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(DigitalCertificate)));
     this.children = childCollection0;
 }
Beispiel #30
0
 /// <summary>
 /// Creates a new ElementCollectionEnumerator.
 /// </summary>
 /// <param name="collection">The collection to create an enumerator for.</param>
 public ElementCollectionEnumerator(ElementCollection collection)
 {
     this.collection = collection;
 }
Beispiel #31
0
 public DirectoryRef()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Component)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Directory)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Merge)));
     this.children = childCollection0;
 }
Beispiel #32
0
 /// <summary>
 /// Creates a new CollectionTuple.
 /// </summary>
 /// <param name="collection">The collection for the tuple.</param>
 public CollectionTuple(ElementCollection collection)
 {
     this.collection = collection;
 }
Beispiel #33
0
 public DirectorySearchRef()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, 1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(DirectorySearch)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(DirectorySearchRef)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(FileSearch)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(FileSearchRef)));
     this.children = childCollection0;
 }
Beispiel #34
0
 internal void AddCollection(ElementCollection collection)
 {
     this.items.Add(collection);
 }
Beispiel #35
0
 public Extension()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Choice, 0, -1);
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(MIME)));
     childCollection0.AddItem(new ElementCollection.ChoiceItem(typeof(Verb)));
     this.children = childCollection0;
 }
Beispiel #36
0
 public CollectionTuple(ElementCollection collection)
 {
     this.collection = collection;
 }
Beispiel #37
0
 public WebDir()
 {
     ElementCollection childCollection0 = new ElementCollection(ElementCollection.CollectionType.Sequence);
     childCollection0.AddItem(new ElementCollection.SequenceItem(typeof(WebApplication), 0, 1));
     this.children = childCollection0;
 }