-- operator allows the EPC Numbers serial number to be decremented by 1
The supplied EPC Number with a decremented Serial Number
Decrementing the serial number below zero (0) will throw an InvalidOperation Exception
SSCC sscc1 = new SSCC(96);
//provide SSCC-18, Filter, and Serial Number and 1
sscc1.Encode("100653005555555558",3,5);
//Go through an decrement the SSCC
for(int i=1;i<=5;i++)
{
(EPCBase)sscc--;
Console.Write(sscc.ToString());
}
EPCBase Class | Apostrophe.EPC Namespace