Server.Core.VerifySerialization C# (CSharp) Méthode

VerifySerialization() private static méthode

private static VerifySerialization ( Assembly a ) : void
a Assembly
Résultat void
        private static void VerifySerialization( Assembly a )
        {
            if( a == null )
                return;

            #if Framework_4_0
            Parallel.ForEach(a.GetTypes(), t =>
                {
                    VerifyType(t);
                });
            #else
            foreach (Type t in a.GetTypes())
            {
                VerifyType(t);
            }
            #endif
        }

Same methods

Core::VerifySerialization ( ) : void

Usage Example

Exemple #1
0
        public static bool Compile(bool debug, bool cache)
        {
            List <Assembly> assemblies = new List <Assembly>();

            assemblies.Add(Assembly.LoadFrom("Scripts.dll"));
            assemblies.Add(typeof(ScriptCompiler).Assembly);

            Assemblies = assemblies.ToArray();

            Utility.PushColor(ConsoleColor.Yellow);
            Console.WriteLine("Scripts: Verifying...");
            Utility.PopColor();

            Stopwatch watch = Stopwatch.StartNew();

            Core.VerifySerialization();

            watch.Stop();

            Utility.PushColor(ConsoleColor.Green);
            Console.WriteLine(
                "Finished ({0} items, {1} mobiles, {2} customs) ({3:F2} seconds)",
                Core.ScriptItems,
                Core.ScriptMobiles,
                Core.ScriptCustoms,
                watch.Elapsed.TotalSeconds);
            Utility.PopColor();

            return(true);
        }
All Usage Examples Of Server.Core::VerifySerialization