Esempio n. 1
0
        public static bool TryGet(string path, out TypeDB typeDb)
        {
            if (string.IsNullOrEmpty(path))
            {
                throw new ArgumentException("Null or Empty is not allowed", nameof(path));
            }

            typeDb = new TypeDB();

            var typeDbFilePathsFrom = BuildPlayerDataGenerator.GetTypeDbFilePathsFrom(path);

            AssemblyInfoManaged[] extractAssemblyTypeInfo =
                AssemblyHelper.ExtractAssemblyTypeInfoFromFiles(typeDbFilePathsFrom);

            if (extractAssemblyTypeInfo != null && extractAssemblyTypeInfo.Any())
            {
                typeDb.AddAssemblyInfo(extractAssemblyTypeInfo, path);
                return(true);
            }
            return(false);
        }