For example, the default format for field 128 in OpenIso8583Rev93
is Fixed Hex 8. How would I change it to Fixed Hex 16.
Asked
Active
Viewed 630 times
1

John Oxley
- 14,698
- 18
- 53
- 78
-
This question pertains to my OSS library http://code.google.com/p/openiso8583net/. That is why I have answered it – John Oxley Aug 22 '11 at 09:53
-
The tag openiso8583.net is intentional. It is a new library and I hope to have more questions here in the future – John Oxley Aug 24 '11 at 08:02
1 Answers
3
You need to extend Iso8583Rev93 and override the template class in the constructor.
public class Iso8583Extended : Iso8583Rev93
{
private static readonly Template ExtendedTemplate;
static Iso8583Extended()
{
ExtendedTemplate = new Template();
ExtendedTemplate[Bit._128_MAC] = FieldDescriptor.AsciiFixed(16, FieldValidators.Hex);
}
public Iso8583Extended():base(ExtendedTemplate)
{
}
}
Will do the job.

John Oxley
- 14,698
- 18
- 53
- 78