Example #1
0
        internal override void PrepareSerialization()
        {
            //base.PrepareSerialization ();
            PrepareSerializationNoBase();

            // Register the template.
            ChelaModule module = GetModule();

            module.RegisterMember(template);
            if (template.IsGenericInstance())
            {
                template.PrepareSerialization();
            }

            // Register the factory.
            module.RegisterMember(factory);
            if (factory != null && factory.IsGenericInstance())
            {
                factory.PrepareSerialization();
            }

            // Register the types used.
            genericInstance.PrepareSerialization(module);
        }