What are the C# equivalent of these C++ structs

前端 未结 4 2047
感情败类
感情败类 2020-12-30 16:52
typedef union _Value {
    signed char    c; 
    unsigned char  b; 
    signed short   s; 
    unsigned short w; 
    signed long    l; 
    unsigned long  u; 
             


        
4条回答
  •  时光取名叫无心
    2020-12-30 17:07

    Some of the other posts already have great information, I thought I would share a quick tip. I had to go through this kind of issue recently. It may be obvious but if you own the code to both sides of the interface I found that commenting out all but the one fields and making sure that works and then adding them back slowly one by one was a much safer way to get this working.

提交回复
热议问题