/// <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); }
/// <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; }