コード例 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            UID = new DonationProfileSerial(reader);

            DonationEntries = new List<DonationEntry>();

            switch (version)
            {
                case 0:
                {
                    Email = reader.ReadString();
                    TotalDonations = reader.ReadInt();

                    int count = reader.ReadInt();

                    if (count > 0)
                    {
                        for (int i = 0; i < count; i++)
                        {
                            var entry = new DonationEntry(reader);
                            DonationEntries.Add(entry);
                        }
                    }
                }
                    break;
            }
        }
コード例 #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            UID = new DonationProfileSerial(reader);

            DonationEntries = new List <DonationEntry>();

            switch (version)
            {
            case 0:
            {
                Email          = reader.ReadString();
                TotalDonations = reader.ReadInt();

                int count = reader.ReadInt();

                if (count > 0)
                {
                    for (int i = 0; i < count; i++)
                    {
                        var entry = new DonationEntry(reader);
                        DonationEntries.Add(entry);
                    }
                }
            }
            break;
            }
        }
コード例 #3
0
        public DonationProfile(string email)
        {
            UID = new DonationProfileSerial();

            DonationEntries = new List<DonationEntry>();

            Email = email;
        }
コード例 #4
0
        public DonationProfile(string email)
        {
            UID = new DonationProfileSerial();

            DonationEntries = new List <DonationEntry>();

            Email = email;
        }