Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public Mechanism[] GetMechanisms()
        {
            var nl    = GetElementsByTagName("mechanism", Namespaces.SASL);
            var items = new Mechanism[nl.Count];
            var i     = 0;

            foreach (XmlNode node in nl)
            {
                items[i] = (Mechanism)node;
                i++;
            }
            return(items);
        }
Beispiel #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public Mechanism[] GetMechanisms()
 {
     XmlNodeList nl = GetElementsByTagName("mechanism", Namespaces.SASL);
     Mechanism[] items = new Mechanism[nl.Count];
     int i = 0;
     foreach (XmlNode node in nl)
     {
         items[i] = (Mechanism)node;
         i++;
     }
     return items;
 }