(二)c#整合zeroIce - 传递复杂对象

环境搭建简单说明:http://blog.csdn.net/yeness/article/details/78161647
zeroIce基本数据类型参考:https://doc.zeroc.com/display/Ice37/Basic+Types

Type Range of Mapped Type Size of Mapped Type
bool false or true ≥ 1bit
byte -128-127 or 0-255 a ≥ 8 bits
short -2^15 to 2^15 -1 ≥ 16 bits
int -2^31 to 2^31 -1 ≥ 32 bits
long -2^63 to 2^63 -1 ≥ 64 bits
float IEEE single-precision ≥ 32 bits
double IEEE double-precision ≥ 64 bits
string All Unicode characters, excluding the character with all bits zero. Variable-length

其他数据类型:

  • Sequences
  • Enumerations
  • Structures
  • Dictionaries
  • constants
  • Classes

如果涉及到工作量较大,可考虑Json字符串在各环节中进行传递

示例地址:http://download.csdn.net/download/yeness/10009163

阅读更多
文章标签: c#rpc
个人分类: c#-rpc
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭