Tonic EPC Wiki
.EPC (Electronic Product Code) Encoding/Decoding Library for .NET
Status: Pre-Alpha
Brought to you by:
now
The Tonic.Epc library provides a convenient access of the GS1 EPC standard.
In its current form, its far from being complete. Have a look at the list of [SupportedTags] for more details.
Use the EpcTag
class as an convenient entry point to the library.
Converting from binary tag into an EPC tag uri:
string uri = EpcTag.FromBinary("302D28B329B0F6C000000001").ToString();
// uri is "epc:tag:sgtin-96:1.311112347.0987.1"
Converting from uri to binary representation:
string tag = EpcTag.FromUri("epc:tag:sgtin-96:1.311112347.0987.1").ToBinary();
// tag is "302D28B329B0F6C000000001"
Accessing properties of a typed tag:
var tag = EpcTag.FromBinary<Sgtin96>("302D28B329B0F6C000000001");
string customerPrefix = tag.CustomerPrefix;