Esempio n. 1
0
            //TO DO if want to support different serialization types then choose them based on file name etc in this class


            #region Public Interface
            public static T FromFile <T>(string fileName)
            {
                //To do! Work out what converter to use based on file extension?
                if (!string.IsNullOrEmpty(fileName))
                {
                    return(XmlConverter.FromFile <T>(fileName));
                }

                return(default(T));
            }