/// <summary> /// Add a type to the packet factory. /// </summary> /// <param name="list"></param> public void AddType(IPacketTypes list) { foreach (QnameType qn in list.Types) { this.AddType(qn.Name, qn.NS, qn.ElementType); } }
/// <summary> /// Add PacketFactories to get XmlElements with type-safe accessors, for /// all of the namespaces you care about. /// </summary> /// <param name="pf"></param> public void AddFactory(IPacketTypes pf) { m_factory.AddType(pf); }