コード例 #1
0
        public void Load(Beetle.NetPackage.IDataReader reader)
        {
            Name    = reader.ReadUTF();
            EMail   = reader.ReadUTF();
            City    = reader.ReadUTF();
            Country = reader.ReadUTF();
            string date = reader.ReadUTF();

            Console.WriteLine(date);
            RegTime = DateTime.ParseExact(date, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
        }
コード例 #2
0
        protected override Beetle.NetPackage.IMessage GetMessage(Beetle.NetPackage.IDataReader reader)
        {
            string Name = reader.ReadUTF();

            switch (Name)
            {
            case "Register":
                return(new Register());
            }
            return(null);
        }