Example #1
0
        private void CheckSubstitutionGroup(NamedContentModelEntity named)
        {
            SubstitutedContentModelEntity substEntity = named as SubstitutedContentModelEntity;

            if (substEntity != null)
            {
                foreach (XName name in substEntity.Members)  //Add Subst members to the lookup table
                {
                    if (!elementPositions.ContainsKey(name))
                    {
                        elementPositions.Add(name, named);
                    }
                }
            }
        }
Example #2
0
        private void CheckSubstitutionGroup(NamedContentModelEntity named)
        {
            SubstitutedContentModelEntity substEntity = named as SubstitutedContentModelEntity;

            if (substEntity != null)
            {
                XName[] members = substEntity.Members;
                for (int i = 0; i < (int)members.Length; i++)
                {
                    XName name = members[i];
                    if (!this.elementPositions.ContainsKey(name))
                    {
                        this.elementPositions.Add(name, named);
                    }
                }
            }
        }