Пример #1
0
        public static List <DotNetNukeAssembliesInfo> GetDotNetNukeAssembliesCollection(string assemblyInfoFile)
        {
            var serializer = new Serialize();

            var dnnAssembliesColl = serializer.DeSerializeObject <List <DotNetNukeAssembliesInfo> >(assemblyInfoFile);

            if (dnnAssembliesColl == null)
            {
                dnnAssembliesColl = BuildDotNetNukeAssembliesCollection();

                serializer.SerializeObject <List <DotNetNukeAssembliesInfo> >(dnnAssembliesColl, assemblyInfoFile);
            }

            return(dnnAssembliesColl);
        }