System.Xml.Schema.XmlSchemaComplexType.CloneGroupBaseParticles C# (CSharp) Méthode

CloneGroupBaseParticles() private static méthode

private static CloneGroupBaseParticles ( XmlSchemaObjectCollection groupBaseParticles ) : XmlSchemaObjectCollection
groupBaseParticles XmlSchemaObjectCollection
Résultat XmlSchemaObjectCollection
        private static XmlSchemaObjectCollection CloneGroupBaseParticles(XmlSchemaObjectCollection groupBaseParticles) {
            XmlSchemaObjectCollection newParticles = groupBaseParticles.Clone();

            for (int i = 0; i < groupBaseParticles.Count; i++) {
                XmlSchemaParticle p = (XmlSchemaParticle)groupBaseParticles[i];
                newParticles[i] = CloneParticle(p);
            }
            return newParticles; 
        }