c# - 位图以及如何填充相关值

标签 c# openiso8583.net

我正在尝试使用 ISO8583Net dll 实现解决方案,但无法确定如何填充各种位图字段值。根据 ISO8583 文档,我可以看到它需要作为字段一的一部分包含在消息(应用程序数据)中,但我找不到它作为代码中可用字段列表的一部分。

我看对地方了吗? 是否有任何 C-sharp 代码片段可以举例说明这是如何实现的?

最佳答案

到目前为止你尝试了什么?

我找不到任何 C# 示例,但我相信您会从它的 Java 版本中学到您需要的东西,这里有一个指南:http://j8583.sourceforge.net/guide.html

These are the two main classes you need to use to work with ISO8583 messages. An IsoMessage can be encoded into a byte array or a ByteBuffer to be written to an OutputStream, or it can directly write itself to an OutputStream. You can set and get the values for each field in an IsoMessage, and it will adjust itself to use a secondary bitmap if necessary.

据我所知,您在 IsoMessage 上设置字段,它负责生成位图。查看 .NET implementation of IsoMessage 中的摘要证实这一点:

/// <summary>
/// This class represents an ISO8583 Message. It contains up to 127 fields
/// numbered from 2 to 128; field 1 is reserved for the secondary bitmap
/// and the bitmaps are calculated automatically by the message when it is
/// going to be written to a stream.

关于c# - 位图以及如何填充相关值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8970292/

相关文章:

iso8583 - ISO 8583 Rev 93 字母和数字字符打包/解包

iso8583 - 将消息从 ASCII 转换为 HEX ISO8583.net

c# - WCF - 如何在 ISO8583 中序列化和反序列化?

c# - 如何在没有数据库的情况下在 ASP.NET Core 中创建一个简单的登录并授权 Controller 访问

c# - JSon反序列化哈希

c# - F# vs C# vs Nemerle

c# - Dictionary<T> 的 SingleOrDefault 集合版本是什么?

c# - 自动生成类的类修饰符