コード例 #1
0
        static void Main(string[] args)
        {
            Database db = new MySQLDatabase("localhost", "root", "!QAZ2wsx", "bourse_analyzer");

            MigrationManager.Migrate(db, null, null);

            long   num = 1000;
            object obj = Activator.CreateInstance(typeof(Number), num);

            test t = new test();

            ISerializeObject d = Creator.Serialize <ISerializeObject>(t);

            test f = Creator.Bind <test>(Creator.Create <ISerializeObject>(d.Content));

            BufferStream buff = new BufferStream(new byte[10000]);

            Serializer.Serialize(f, buff);

            buff.ResetRead();

            f = Serializer.Deserialize <test>(buff);
        }