Exemple #1
0
        protected override void DeserializeMembers(SalesRep instance)
        {
            string val = null; // when using a property we need an intermediate variable

            Fmt.Deserialize <string>(ref val);
            instance.Name = val;
            Fmt.Deserialize <string>(ref instance.phoneNumber);
        }
Exemple #2
0
 protected override void DeserializeMembers(StockItem instance)
 {
     Fmt.Deserialize <string>(ref instance.name);
     Fmt.Deserialize <string>(ref instance.category);
     Fmt.Deserialize <string>(ref instance.vendor);
     Fmt.Deserialize <string>(ref instance.sku);
     instance.price    = Fmt.Deserialize <float>();
     instance.quantity = Fmt.Deserialize <int>();
 }
Exemple #3
0
 protected override void DeserializeMembers(Vendor instance)
 {
     Fmt.Deserialize <string>(ref instance.name);
     Fmt.Deserialize <string>(ref instance.street);
     Fmt.Deserialize <string>(ref instance.city);
     Fmt.Deserialize <string>(ref instance.state);
     Fmt.Deserialize <string>(ref instance.zipCode);
     Fmt.Deserialize <string>(ref instance.phoneNumber);
     Fmt.Deserialize <SalesRep>(ref instance.salesRep);
 }