using System.Xml.Serialization; using Implab.Components; namespace Implab.Xml { /// /// This class used to get default serializer for the specified type . /// /// The type used to create public static class XmlDefaultSerializer { static readonly LazyAndWeak m_instance = new LazyAndWeak(() => new XmlSerializer(typeof(T))); public static XmlSerializer Instance { get { return m_instance.Value; } } } }