- operator allows two EPC Numbers to be subtracted
A new EPC Number that has the subtracted serial number
Decrementing the serial number below zero (0) will throw an InvalidOperation Exception
SSCC sscc1 = new SSCC(96);
SSCC sscc2 = new SSCC(96);
//provide SSCC-18, Filter, and Serial Number 2 and 1
sscc1.Encode("100653005555555558",3,2);
sscc2.Encode("100653005555555558",3,1);
//Add sscc1 and sscc2 for a new SSCC with a serial number of 1
SSCC sscc3 = sscc1 - sscc2;
EPCBase Class | Apostrophe.EPC Namespace