/// <summary> /// The SASL mechanisms valid for this stream. /// </summary> /// <returns></returns> public Mechanism[] GetMechanisms() { XmlNodeList nl = GetElementsByTagName("mechanism", URI.SASL); Mechanism[] items = new Mechanism[nl.Count]; int i = 0; foreach (XmlNode n in nl) { items[i] = (Mechanism)n; i++; } return(items); }
/// <summary> /// The SASL mechanisms valid for this stream. /// </summary> /// <returns></returns> public Mechanism[] GetMechanisms() { XmlNodeList nl = GetElementsByTagName("mechanism", URI.SASL); Mechanism[] items = new Mechanism[nl.Count]; int i=0; foreach (XmlNode n in nl) { items[i] = (Mechanism) n; i++; } return items; }