Encodes a DoD EPC Number
This overload should only be used in conjuction with the constructor overloads:
public DoD(int size,int startingSerialNumber,int totalSerialNumbers) -OR- DoD(string tagURI)
//Create a 96 Bit DoD By providing the individual fields: CAGE,Size,Filter, Serial Number
DoD dod = new DoD("2S194",96,3,12345678901);
//call Encode()
string encoded = dod.Encode();
//Create a 64 Bit DoD By providing the individual fields
DoD dod = new DoD("2S194",64,3,12345678901);
//call Encode()
string encoded = dod.Encode();
//You can also call this method after constructing the DoD Class with a EPC Tag URI
System.Uri tagURI = new System.Uri("urn:epc:tag:usdod-96:0000.2S194.12345678901");
DoD dod = new DoD(tagURI);
string encoded = dod.Encode();
DoD Class | Apostrophe.EPC Namespace | DoD.Encode Overload List