Ejemplo n.º 1
0
 internal void ConvertSecurityElementFactories()
 {
     if (this.m_lChildren != null)
     {
         for (int i = 0; i < this.m_lChildren.Count; i++)
         {
             ISecurityElementFactory factory = this.m_lChildren[i] as ISecurityElementFactory;
             if ((factory != null) && !(this.m_lChildren[i] is SecurityElement))
             {
                 this.m_lChildren[i] = factory.CreateSecurityElement();
             }
         }
     }
 }
Ejemplo n.º 2
0
 internal void ConvertSecurityElementFactories()
 {
     if (this.m_lChildren == null)
     {
         return;
     }
     for (int index = 0; index < this.m_lChildren.Count; ++index)
     {
         ISecurityElementFactory securityElementFactory = this.m_lChildren[index] as ISecurityElementFactory;
         if (securityElementFactory != null && !(this.m_lChildren[index] is SecurityElement))
         {
             this.m_lChildren[index] = (object)securityElementFactory.CreateSecurityElement();
         }
     }
 }
 // Token: 0x06001BE1 RID: 7137 RVA: 0x0005FB54 File Offset: 0x0005DD54
 internal void ConvertSecurityElementFactories()
 {
     if (this.m_lChildren == null)
     {
         return;
     }
     for (int i = 0; i < this.m_lChildren.Count; i++)
     {
         ISecurityElementFactory securityElementFactory = this.m_lChildren[i] as ISecurityElementFactory;
         if (securityElementFactory != null && !(this.m_lChildren[i] is SecurityElement))
         {
             this.m_lChildren[i] = securityElementFactory.CreateSecurityElement();
         }
     }
 }
Ejemplo n.º 4
0
        internal void ConvertSecurityElementFactories()
        {
            if (_children == null)
            {
                return;
            }

            for (int i = 0; i < _children.Count; ++i)
            {
                ISecurityElementFactory iseFactory = _children[i] as ISecurityElementFactory;
                if (iseFactory != null && !(_children[i] is SecurityElement))
                {
                    _children[i] = iseFactory.CreateSecurityElement();
                }
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 转换安全元素工厂,将ISecurityElementFactories转换为SecurityElement
        /// </summary>
        internal void ConvertSecurityElementFactories()
        {
            if (m_lChildren == null)//如果 XML 元素子元素的数组为空,则返回为空
            {
                return;
            }

            for (int i = 0; i < m_lChildren.Count; ++i)
            {
                ISecurityElementFactory iseFactory = m_lChildren[i] as ISecurityElementFactory; //将子元素转换为xml安全元素工厂实体
                if (iseFactory != null && !(m_lChildren[i] is SecurityElement))                 //如果元素工厂不为空,并且子元素可以转化为SecurityElement对象
                {
                    m_lChildren[i] = iseFactory.CreateSecurityElement();                        //将创造的SecurityElement对象赋值给子元素数组中
                }
            }
        }